zhunzhong07 / camstyle Goto Github PK
View Code? Open in Web Editor NEWCamera Style Adaptation for Person Re-identification CVPR 2018
Camera Style Adaptation for Person Re-identification CVPR 2018
Hello,
Thanks for sharing the code!
I ran your code without any modification for re-id baseline without using camstyle.
I was only able to get 84.3% instead of 85.6% in Readme.
Is there any other hyperparameter setting that I have to change to achieve 85% accuracy for baseline IDE?
Any idea where that 1 % gap comes from?
Thank you!
When i use train_market.sh to train generate model,i don't kown how to set best batchsize and epoch number. can u give me your training parameter(batchsize and opech number)?
With the default parameter ,the quality of generated image is not very well,so i think it might be parameter problem.
Hi, when I run the comand
“python main.py -d market --logs-dir logs/market-ide-camstyle --camstyle 46”
I get errot
“RuntimeError: CUDA error: out of memory”
Can you help me with your answer?
"html.py", line 1, in
import dominate
ImportError: No module named dominate
i can't find dominate file in your project, can you help me with this?
Why is the Rank-1 and mAP of the IDE+CamStyle experiment when I directly use the code and the author's picture lower than the Rank-1 and mAP of the IDE experiment?
In IDE + CamStyle, I just run "python main.py -d duke --logs-dir logs/duke-ide--camstyle --camstyle 46" with "DukeMTMC-reID-CamStyle".
In IDE, I just run "python main.py -d duke --logs-dir logs/duke-ide".
What more do I need to do?
train | 751 | 12936
query | 750 | 3368
gallery | 751 | 15913
camstyle | 0 | 0
Traceback (most recent call last):
File "main.py", line 201, in
main(parser.parse_args())
File "main.py", line 86, in main
args.width, args.batch_size, args.camstyle, args.re, args.workers)
File "main.py", line 72, in get_data
shuffle=True, pin_memory=True, drop_last=True)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 176, in init
sampler = RandomSampler(dataset)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/sampler.py", line 66, in init
"value, but got num_samples={}".format(self.num_samples))
ValueError: num_samples should be a positive integer value, but got num_samples=0
Hi, would you please release the model you trained for these works?
Thanks a lot.
The data augmentation is used for training. When testing, do you use the generated images? Or the test is just like the normal test?
Hi, How much should epoch be set when batch size is set to 3. Thanks.
Sorry to interrupt again, when I ran "python main.py -d market --logs-dir logs/market-ide" I got this
so I just comment the camstyle part in main.py(sepecficly, the function named get_data and the function named main), then I got the result like this
mAP : 70.2%
top-1 : 87.9%
then I got everything back, I ran "python main.py -d market --logs-dir logs/market-ide-camstyle --camstyle 22", I suppose the number behind --camstyle divided by batch-size is the ratio between fake and real images.
However I got the mAP of 68.6% and top-1 of 87.5%, so the result was deteriorating after I added the camstyle image. I hope you can solve my problem. Thank you.
我修改了loss选择与选择了输出为特征,但是特有的数据加载方式应该如何修改,我在reid/utils/data中找到了sampler.py与prerocessor.py文件 但我不知如何在主函数中使用
train | 0 | 0
query | 0 | 0
gallery | 0 | 0
camstyle | 0 | 0
Traceback (most recent call last):
File "main.py", line 198, in
main(parser.parse_args())
File "main.py", line 83, in main
args.width, args.batch_size, args.camstyle, args.re, args.workers)
File "main.py", line 69, in get_data
shuffle=True, pin_memory=True, drop_last=True)
File "C:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 437, in init
batch_sampler = BatchSampler(sampler, batch_size, drop_last)
File "C:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\torch\utils\data\sampler.py", line 128, in init
"but got batch_size={}".format(batch_size))
ValueError: batch_size should be a positive integeral value, but got batch_size=0
when I ran 'python main.py -d market --logs-dir logs/market-ide' on my computer, I got the information above,what can I do to solove this problem? thank you.
train | 0 | 0
query | 0 | 0
gallery | 0 | 0
camstyle | 0 | 0
Traceback (most recent call last):
File "main.py", line 198, in
main(parser.parse_args())
File "main.py", line 138, in main
trainer.train(epoch, train_loader, optimizer)
File "/home/aaron/reid/CamStyle/reid/trainers.py", line 28, in train
for i, inputs in enumerate(data_loader):
File "/home/aaron/anaconda3/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 417, in iter
return DataLoaderIter(self)
File "/home/aaron/anaconda3/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 242, in init
self._put_indices()
File "/home/aaron/anaconda3/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 290, in _put_indices
indices = next(self.sample_iter, None)
File "/home/aaron/anaconda3/lib/python3.5/site-packages/torch/utils/data/sampler.py", line 119, in iter
for idx in self.sampler:
File "/home/aaron/anaconda3/lib/python3.5/site-packages/torch/utils/data/sampler.py", line 50, in iter
return iter(torch.randperm(len(self.data_source)).long())
RuntimeError: invalid argument 1: must be strictly positive at /opt/conda/conda-bld/pytorch_1523242347739/work/torch/lib/TH/generic/THTensorMath.c:2247
......
when I ran 'python main.py -d market --logs-dir logs/market-ide' on my computer, I got the information above, so I checked the code. I found in the line 36 of evaluators.py, you used 'for i, (imgs, fnames, pids, _) in enumerate(data_loader):' to process the data_loader, while in line 28 of trainers.py you used 'for i, inputs in enumerate(data_loader):', then you defined a function named _parse_data to process this 'inputs', then I got the error. So I was wondering if you have the same problem, and am I supposed to change the code there?
(I tried on pytorch 0.3.1 on both python 3.5 and python 3.6, and also I thought maybe it was my pytorch's problem?
In the paper,you viewed the real and fake images equally,as to the loss function, when defining loss function , why you considered it into two parts ?
What's the times of identity loss weight smaller than reconstruction loss?
when I run the comand
python main.py -d duke --logs-dir logs/duke-ide
I get errot
File "main.py", line 42, in get_data
T.Resize((height, width), interpolation=3),
AttributeError: module 'reid.utils.data.transforms' has no attribute 'Resize'
So I saw you reid.utils.data.transforms module,in face ,not Resize attribute.
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.