Giter Site home page Giter Site logo

Question about dataset about deephash-pytorch HOT 5 CLOSED

swuxyj avatar swuxyj commented on July 20, 2024
Question about dataset

from deephash-pytorch.

Comments (5)

BigBoomDream avatar BigBoomDream commented on July 20, 2024 1

hi, thank you very much for your work, the database.txt test.txt and train.txt of cifar10 in data is not given

from deephash-pytorch.

swuxyj avatar swuxyj commented on July 20, 2024

I hope code1code2code3 can help you.

from deephash-pytorch.

uniartisan avatar uniartisan commented on July 20, 2024

I hope code1code2code3 can help you.

Thanks a lot, it really help.
Could you please tell me what does database.txt do in training the network :)

from deephash-pytorch.

swuxyj avatar swuxyj commented on July 20, 2024

I hope code1code2code3 can help you.

Thanks a lot, it really help. Could you please tell me what does database.txt do in training the network :)

训练的时候只用了:train_loader
test_loader, dataset_loader 在算mAP的时候用的:

            tst_binary, tst_label = compute_result(test_loader, net, device=device)

            # print("calculating dataset binary code.......")\
            trn_binary, trn_label = compute_result(dataset_loader, net, device=device)

            # print("calculating map.......")
            mAP = CalcTopMap(trn_binary.numpy(), tst_binary.numpy(), trn_label.numpy(), tst_label.numpy(),
                             config["topK"])

from deephash-pytorch.

swuxyj avatar swuxyj commented on July 20, 2024

hi, thank you very much for your work, the database.txt test.txt and train.txt of cifar10 in data is not given

You can get the cifar10 dataset by import torchvision.datasets, and then directly divide it in multiple ways. You can refer to the code, of course, You can also generate these files yourself.

from deephash-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.