mangye16 / ddag Goto Github PK
View Code? Open in Web Editor NEWPytorch Code of DDAG for Visible-Infrared Person Re-Identification (ECCV20)
License: MIT License
Pytorch Code of DDAG for Visible-Infrared Person Re-Identification (ECCV20)
License: MIT License
当我运行:
python test_ddag.py --dataset sysu --mode all --wpa --graph --gpu 0 --resume ’model_path‘
==> Resuming from checkpoint..
==> no checkpoint found at model_path!!!!!!!!!!
==> Loading data..
测试完,准确率就4.几
我想知道_--resume: the saved model path. ** Important _ 怎么设置,比如我已经训练完了,训练的--model_path', default='save_model/' ,那么运行test的命令 --resume 'model_path' 要怎么改
This paper reports that DDGA is evaluated under both visible-to-infrared and infrared-to-visible query settings.
I re-implemented the code you published without making any changes. I obtain 31.25% map under visible to infrared setting, which is much more lower than 61.80% map reported in your paper. Under infrared to visible setting, similar results (61.97 vs 63.46) is still found.
Thanks in advances.
When I finished training on the RegDB dataset, I followed the README.md
instructions to run this in my terminal:
python test_ddag.py --dataset regdb --trial 1 --wpa --graph --gpu 1 --resume 'regdb_G_P_3_drop_0.2_4_8_lr_0.1_seed_0_trial_1_best.t'
where regdb_G_P_3_drop_0.2_4_8_lr_0.1_seed_0_trial_1_best.t
is the model trained by the RegDB dataset.
The error information told me that, query_loader
is not defined:
Traceback (most recent call last):
File "test_ddag.py", line 200, in <module>
query_feat, query_feat_att = extract_query_feat(query_loader)
NameError: name 'query_loader' is not defined
So, I went through the codes and tryna make some modifications, but the work is more than I expected, as there were dozens of supplements that need to be added directly to the source codes, apart from query_loader
. Though I finally managed to run successfully, and the outcomes look reasonable, I am still befuddled by all the extra work I have to get done.
I AM WONDERING if all these modifications are necessary or there actually exists a way to implement tests on RegDB.
Traceback (most recent call last):
File "I:/DDAG-master/train_ddag.py", line 479, in
main()
File "I:/DDAG-master/train_ddag.py", line 442, in main
wG = train(epoch, wG, trainloader)
File "I:/DDAG-master/train_ddag.py", line 284, in train
for batch_idx, (input1, input2, label1, label2) in enumerate(trainloader):
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 279, in iter
return _MultiProcessingDataLoaderIter(self)
File "C:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 719, in init
w.start()
File "C:\ProgramData\Anaconda3\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\ProgramData\Anaconda3\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\ProgramData\Anaconda3\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\ProgramData\Anaconda3\lib\multiprocessing\popen_spawn_win32.py", line 89, in init
reduction.dump(process_obj, to_child)
File "C:\ProgramData\Anaconda3\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
OSError: [Errno 22] Invalid argument
Traceback (most recent call last):
File "", line 1, in
File "C:\ProgramData\Anaconda3\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\ProgramData\Anaconda3\lib\multiprocessing\spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
_pickle.UnpicklingError: pickle data was truncated
我的电脑插了双1080ti显卡,我想加快跑的速度,请问怎里才能利用两张显卡同时跑一个任务呢?
你好,如果我在该论文中加入cam(即pam+cam),那么是否还能叫模态内的局部注意力呢?
加入后,就是cam输出与pam输出 wise add后是不是不能叫模态内,而是模态间的局部注意力?
Hello, Thanks for your great work, I am wondering that whether the code have some visualization function, or where I can find the code to show the result?
I would be appreciate if you can answer my question.
Excuse me.
When I test on Regdb , there is a NameError that"name 'queryset' is not defined"
How can I solve it? Thank you!!!!
Traceback (most recent call last):
File "test_ddag.py",line 152, in
query_loader = data.DataLoader(queryset, batchsize=args.test_batch, shuffle=False, num_workers=4)
NameError: name 'queryset' is not defined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.