Giter Site home page Giter Site logo

dsh-pytorch's Introduction

DSH_DeepSupervisedHashing

A new version for https://github.com/weixu000/DSH-pytorch

  • 2023-6-14说明 :原有的复现代码并不适合多标签任务分类,需要更改相关损失函数
  • 2023-5-21更新 object文件夹可以轻松帮你评估6个指标(mAP,PRcurve,NDCG@1000,TopK-Precision,TopK-Recall,P@H<=2)
  • 2023-5-21updated dictory named object will help you easily predict six indexes (mAP,PRcurve,NDCG@1000,TopK-Precision,TopK-Recall,P@H<=2)

Instruction(说明)

  • mat文件的保存一定要这样(mat file must be saved like this)
  • 可以使用python run.py运行运算指标的程序,但是我最好建议你打开去自己设置它的参数
result_dict = {
        'q_img' : query_img ,
        'r_img' : retrieval_img ,
        'q_l' : query_label ,
        'r_l' : retrieval_label
    }
  • PR——cruves是一个计算PR曲线指标的模块 , save_mat是一个把模型生成的哈希码和标签保存为.mat文件的模块

where you can find the parper

-PyTorch implementation of paper Deep Supervised Hashing for Fast Image Retrieval

It is a brandnew version of DSH_DeepSupervisedHashing

  • Which is rewrited by GPT3.5 (I also participated in this job , Because some errors will happen to AI)😆
  • 😢 , but I also modified the parameters in the source code, and a pooling layer in the network ( which can perform a little better than it used to be)

tips you might interested in

  • Adding a Savemat function in main.py so that you can use it to Visualize some metrics ( like PrCruve some what .....💐)
  • provide a useful method to Visualize Prcruve , U can use Dataspell to do it by using the csv file ##How to Run
  • I intended to make it easy for reading. You can easily run it by
python main.py

*commandline uasge have a nice-looking help

pyhon main.py -h

packages

pytorch == 1.12.0 + cu113

torchvision == 0.13.0 + cu113

tqdm

scipy

tornado

matplotlib

dsh-pytorch's People

Contributors

mahiro2211 avatar ridingtracktor avatar

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.