Giter VIP home page Giter VIP logo

research-xbm's People

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  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  avatar  avatar  avatar  avatar  avatar

research-xbm's Issues

scheduler.step(log_info[f"R@1"]) KeyError: 'R@1'

CUDA_VISIBLE_DEVICES=0 python3 tools/train_net.py --cfg configs/sample_config.yaml

Traceback (most recent call last):
File "tools/train_net.py", line 81, in
train(cfg)
File "tools/train_net.py", line 64, in train
criterion, checkpointer, writer, device, checkpoint_period, arguments, logger,)
File "/home/shengyang/work/hg-git/HS/research-xbm/ret_benchmark/engine/trainer.py", line 74, in do_train
scheduler.step(log_info[f"R@1"])
KeyError: 'R@1'

torch: 1.4.0
GTX 1080ti

what's wrong with it?

Questions about the use of CUB200-2011 datasets

Thank you for sharing the code.
Now I'm using CUB200 for training, but the maximum R@1 is always around 60. I don't know how to adjust the parameters and choose loss. Do you have any Suggestions?
Thank you very much

hard_mining

请问在ms损失中,hard_mining时调用torch.min(pos_pair_)时,pos_pair_有时长度为0报错怎么办

loss

xbm_loss的权重的权重设置为1 这样原来的loss=loss 现在的loss=loss+xbm_loss ,在1000轮的时候是不是会发生loss升高的现象

Question About DataSet

Thank you for sharing the code. Which data set is your preset parameter suitable for? At present, the data set I use has performance degradation during the training process.

loss

请问你试过softmax+triplet吗,在我代码里没有提升,不知道是啥原因?
我代码里用的 softmax+triplet+xbm(triplet)

map@R metric implem seems mistaken

Hi!
Thanks for releasing this repo!
I wanted to let you know that I am pretty sure there is a mistake in the implementation of mAP@R:
Line 35, you divide by max_possible_matches_per_row for this query (which is R).
But what should be done is divide by the actual number of relevant items in the R-best-ranked ones.
see wikipedia page on AP:
image
I also wrote some tests against the sklearn implem of AP (I can send them if needed).
This mistake seems to also be present in the repo of 'Deep metric learning reality check' with very similar code, I'm not sure who was inspired from who, but I will open an issue there too.
Regards,
A

Update memory

The code has abandoned the strategy of updating memory, such as 'Moving Average Update'?

About data preparation

Thanks for sharing the code. However, the code has one error: "AssertionError: path for train.txt NOT found."
It seems that the data path is not provided. Could you give some references or explanations on the data preparation?

Question about path text file format

Hi. Thanks for the good resource!!
I have a question about train.txt/test.txt file format.
Pardon me, can you provide a path text file format or some examples of that?

thank you.

Cannot reproduce the results of the SOP dataset

Hi all,

The best e_precision_recall_at_1 I can achieve is about 75, which is different from 80.6 reported in the paper. According to the given configurations of SOP in the paper, I set the memory ratio to 1, the initial learning rate to 3e-4 which is multiplied by 0.1 after 24k iterations, and the number of total iterations to 34k. The other configurations are given as follows
1627056460(1)
1627056520(1)

Did you come across the same issue? Any advice will be appreciated!

Cannot reproduce the result of In Shop

Hi, I am trying to reproduce the result of In shop image retrieval in your paper. However, I only got 0.874 (vs 0.913 in the paper) in terms of recall@1 (which seems to be referred as precision@1 in the code). Attached is my config file, my change of 'trainer.py' (so that it allows to input query and gallery set) and my data preparation code.
code link here

Thank you very much.

detach

在do_train里必须用detach截断feats和targets吗?

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.