Coder Social home page Coder Social logo

train about cnnimageretrieval-pytorch HOT 9 OPEN

filipradenovic avatar filipradenovic commented on May 22, 2024
train

from cnnimageretrieval-pytorch.

Comments (9)

Salehbigdeli avatar Salehbigdeli commented on May 22, 2024

The default dataset for training is retrieval-SfM-120k it's not necessary to set it for train. Use newest version of code.

from cnnimageretrieval-pytorch.

filipradenovic avatar filipradenovic commented on May 22, 2024

Have you tried running the train example from README training section? I.e., have you tried running the following line:

python3 -m cirtorch.examples.train YOUR_EXPORT_DIR --gpu-id '0' --training-dataset 'retrieval-SfM-120k' 
            --test-datasets 'roxford5k,rparis6k' --arch 'resnet101' --pool 'gem' --loss 'contrastive' 
            --loss-margin 0.85 --optimizer 'adam' --lr 1e-6 --neg-num 5 --query-size=2000 
            --pool-size=22000 --batch-size 5 --image-size 362

from cnnimageretrieval-pytorch.

Garamda avatar Garamda commented on May 22, 2024

I eliminated quotation marks ex) 'retrieval-SfM-120k' -> retrieval-SfM-120k and it worked. I don't know why the quotation marks need to be removed though. Other quotation marks in the command should be removed in the same way.

p.s. I'm using Window 10, not Linux.

from cnnimageretrieval-pytorch.

filipradenovic avatar filipradenovic commented on May 22, 2024

@Garamda

p.s. I'm using Window 10, not Linux.

This might be the reason, we have only tested it on Linux, so far. It is good to know the code runs on Windows as well.

from cnnimageretrieval-pytorch.

Garamda avatar Garamda commented on May 22, 2024

@filipradenovic

However, because of Linux commands like wget or rm, I couldn't go further. I think I should use Linux.

from cnnimageretrieval-pytorch.

filipradenovic avatar filipradenovic commented on May 22, 2024

@Garamda

If the problem is only in the download script, then this can be solved by manually downloading necessary files from cnnimageretrieval website. It should be clear from the download script how the data should be arranged (folder structure). I don't know if it is too much work to do it manually though, but it is only done once, so it might be worth it.

Hope this helps anyhow.

from cnnimageretrieval-pytorch.

Garamda avatar Garamda commented on May 22, 2024

@filipradenovic

That is great idea. Thank you :)

from cnnimageretrieval-pytorch.

filipradenovic avatar filipradenovic commented on May 22, 2024

@Garamda if you do manage to run it with Windows, can you post your findings here? It might be very useful for many other Windows users, and we would be very grateful. If it is easier for you, you can even open a new issue named 'Running the toolbox on Windows'. Thank you.

from cnnimageretrieval-pytorch.

Garamda avatar Garamda commented on May 22, 2024

@filipradenovic

Alright. If I can, I ll do it :)

from cnnimageretrieval-pytorch.

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.