GithubHelp home page GithubHelp logo

wtyhub / lpn Goto Github PK

View Code? Open in Web Editor NEW
73.0 73.0 13.0 3.49 MB

Pytorch implementation of Each Part Matters: Local Patterns Facilitate Cross-view Geo-localization https://arxiv.org/abs/2008.11646

License: MIT License

Python 98.37% Shell 1.63%

lpn's People

Contributors

wtyhub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lpn's Issues

Question about using Grad-CAM

Hello,

Thank you for your great work.

I was trying to use the draw_cam.py script to extract heatmap from results, but there were some errors occured during the experiment, and I do not really understand the problem here:

Traceback (most recent call last):
File "draw_cam.py", line 115, in
draw_CAM(model, img_path, save_path, transform=data_transforms, visual_heatmap=False)
File "draw_cam.py", line 42, in draw_CAM
output.register_hook(extract)
File "/.pyenv/versions/anaconda3-2021.05/lib/python3.8/site-packages/torch/_tensor.py", line 289, in register_hook
raise RuntimeError("cannot register a hook on a tensor that "
RuntimeError: cannot register a hook on a tensor that doesn't require gradient

Could you check the script again and teach me how to solve this problem?
Thank you and best regards.

Some Questions about SAFA

you said you reimplemented the SAFA with Pytorch in your paper, but I only found the reference of SAFA in your code like these.

image

Could you give me the definition code of SAFA?

Question about the Classblock

Hello, I've been reading this code recently. I have a problem that I don't understand.

In the model.py file, the part_classifier function defined in the three_view_net function. During the training, the structure of the Classblock in this function is as follows:
train

During the test, the structure of classblock is as follows:
test

I want to ask, how is this achieved?

Directory structure of CVUSA dataset

Hello, I downloaded the CVUSA dataset, but an error occurred when running prepare_ cvusa. py. There is no path in line 6 of the prepare_cvusa.py in my dataset. I want to know the directory structure of the CVUSA dataset to see if I downloaded the wrong dataset.

Some questions about the prepare_cvact.py

Hello, I had some problems while preparing for CVACT, as follows,
**dataset index: 218255 dataset unexist pair: ['G:/datasets/ANU_data_small/streetview/HkiKa_k0d5RXDxW14D_A1A_grdView.jpg', 'G:/datasets/ANU_data_small/satview_polish/HkiKa_k0d5RXDxW14D_A1A_satView_polish.jpg']**
This kind of prompt appeared many times. After processing, the 70G data finally generated only a 600M data. Can you tell me how to solve this problem?

No such file or directory: './ACT_data.mat'

Hello, when I run the prepare_cvact.py file, I am prompted that "No such file or directory:'./ACT_data.mat'. I want to ask if this file is in the CVACT dataset? The dataset I downloaded does not contain this file.

About trained model

Hi, thanks for your code first. Can you offer the trained model on UNIVERSITY-1652?

Questions for trainning on University-1652

Hi,

I directly trained the model to match images from two views (satellite -> drone) through the 'train.py', but the accuracy remained extremely low (from 0.0000 to 0.0060), and didn't grow with epoch increases.

I changed some of the parameters for training on my computer, the changes are as follow:
batchsize = 2
num_workers = 0
inputs2, labels2 are from the 'drone' directory
LPN = True

I wonder how I could achieve the accuracy. Are there any preparations upon the dataset needed before training? Thank you very much for your help!

Zhaoxiang

CVUSA training exception

hi,Thanks for your work!
But when I was training CVUSA, the loss was always very large, and the accuracy rate was very low.
I have processed the dataset according to prepare_cvusa.py

-- Epoch 33/189


-- train Loss: 122.1055 Satellite_Acc: 0.0339 Street_Acc: 0.0411

-- Training complete in 450m 17s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.