Coder Social home page Coder Social logo

Train on custom dataset about patch-netvlad HOT 14 OPEN

qvpr avatar qvpr commented on June 8, 2024
Train on custom dataset

from patch-netvlad.

Comments (14)

Tobias-Fischer avatar Tobias-Fischer commented on June 8, 2024 6

Hi @JiananZhao0224, many thanks for your interest in Patch-NetVLAD. We will release training code in the next few weeks.

Best, Tobias

from patch-netvlad.

StephenHausler avatar StephenHausler commented on June 8, 2024 2

Hi @wzxuhuaiyuan, thanks for your interest in our work! We will have the training code released by the end of this month at the very latest.

from patch-netvlad.

Tobias-Fischer avatar Tobias-Fischer commented on June 8, 2024 1

Hi @alien19, many thanks for your message. At the moment we do not support training on a custom dataset in this repository. I'll chat again with @StephenHausler to see how much work it would be for us to support this - but unfortunately it is not a priority at the moment with several deadlines coming up for us.

from patch-netvlad.

alien19 avatar alien19 commented on June 8, 2024 1

Thanks @Tobias-Fischer, looking forward to your reply and good luck with your deadlines.
But for now if you can provide a brief about the Mapillary dataloader or the metadata required for training the model, I'd be very thankful.

from patch-netvlad.

Zhaozhpe avatar Zhaozhpe commented on June 8, 2024 1

Hello, I am also trying to train Patch-NetVLAD on a custom dataset, but it's not going very well. I would like to ask if you have solved this problem, or if it is convenient to communicate this problem together.

from patch-netvlad.

wzxuhuaiyuan avatar wzxuhuaiyuan commented on June 8, 2024

Hi! I'm very inspired by your wonderful work! Could you tell me when you will release the training code? I want to train it myself. Thanks.

Best, Huaiyuan

from patch-netvlad.

Tobias-Fischer avatar Tobias-Fischer commented on June 8, 2024

Just in time - @StephenHausler managed to get it done in #20

Please let us know if you run into issues.

from patch-netvlad.

alien19 avatar alien19 commented on June 8, 2024

Hi @Tobias-Fischer , I'd like really to show my appreciation for your work but I want to know if there is a provided code for training Patch-NetVLAD on a custom dataset or how to build my dataset to be compatible with the available code

thanks in advance.

from patch-netvlad.

Tobias-Fischer avatar Tobias-Fischer commented on June 8, 2024

Hi, do you have any specific questions? Most of the code is in https://github.com/QVPR/Patch-NetVLAD/tree/main/patchnetvlad/training_tools

from patch-netvlad.

alien19 avatar alien19 commented on June 8, 2024

Thank you @Tobias-Fischer, I checked most of the code (not all yet) in order to try the training code with the "Mapillary dataset" so, now I want to know how to form my dataset in order to supply the model with it for training (already checked that there are 4 metadata files)

from patch-netvlad.

Zhaozhpe avatar Zhaozhpe commented on June 8, 2024

@alien19

from patch-netvlad.

alien19 avatar alien19 commented on June 8, 2024

Hi @Zhaozhpe , actually I cannot remember what I have reached in that problem since it has been a while ago (I will check though). Until then, yes we can communicate to solve it together. just tell me the point u have reached or ping me on [email protected] to discuss further details.

from patch-netvlad.

JSP-ywu avatar JSP-ywu commented on June 8, 2024

Hi! Can I get advice about training on a custom dataset? I think this repository doesn't support training on a custom dataset directly. I need to implement original netVLAD with PCA and this repository help me out about what I wonder. But the code for a custom dataset is missing. @alien19 , may I contact you via mail address you wrote?

from patch-netvlad.

StephenHausler avatar StephenHausler commented on June 8, 2024

Hi, I can try and offer some tips that might help. For a custom dataset, a lot of the training code will stay the same as in msls.py. You can pretty much reuse these functions from msls.py:
def getitem()
def update_subcache()
def new_epoch()

Writing a new init() function will require the most work. In init, you need to add in code to find positive images for training (you need GPS data for this), to fill in a pos_indices variable (see line 157 of msls.py). You'll need to populate some self.qIdx, self.pIdx and self.negIdx (indices to locations in query/reference sets) and self.qImages, self.dbImages containing paths to the respective query/reference image sets for your new dataset.

from patch-netvlad.

Related Issues (20)

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.