Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The directory, pw = '/home/zzd/re_ID/market1501/bounding_box_train_256/',in prepare_data is what? #2

Open
qiulesun opened this issue Jul 28, 2017 · 12 comments

Comments

@qiulesun
Copy link

No description provided.

@layumi
Copy link
Owner

layumi commented Jul 28, 2017

First we need to resize the images to 256x256 for the following processing (like crop 224x224).
The resized images will store into this dir.

@qiulesun
Copy link
Author

I got the error,'无法打开要写入的文件 "E:\project\STN\Pedestrian_Alignment-master\dataset\bounding_box_train_256\0002_c1s1_000451_03.jpg"',when run the imwrite(im,url256) in prepare_data.

@qiulesun
Copy link
Author

I find the reson. The dictiontory, bounding_box_train_256, is not created.

@TaihuLight
Copy link

TaihuLight commented Dec 19, 2017

Why resize the images to 256 * 256 instead of 224 * 224, and the input size of ResNet-50 is 224*224?

@TaihuLight
Copy link

TaihuLight commented Dec 19, 2017

The network can be visulized with the web tool http://ethereon.github.io/netscope/
And the model can be converted to caffemodel?
https://github.com/marvis/pytorch-caffe-darknet-convert

@layumi
Copy link
Owner

layumi commented Dec 19, 2017

Hi @TaihuLight
I use a trick. Since ResNet is a fully convolutional network, using 256*256 image as input will output 4*4*2048. Then I sum the first and second dimension and get the 1*1*2048 vector.
I found this feature is a little better.

@TaihuLight
Copy link

Why the name of the image in market1501 is *.jpg.jpg as follows ? It is the wrong or the trick ?
selection_001

@layumi
Copy link
Owner

layumi commented Dec 20, 2017

Hi @TaihuLight
I am not sure what is wrong.
Are these images generated when preparing data?
Anyway, I think it is fine since matlab still can read them.

@TaihuLight
Copy link

TaihuLight commented Dec 20, 2017

It is only a bug for the market1501 dataset, and these images are the original images in the official dataset market1501. I think your team will fix it in future.

@daySunny
Copy link

daySunny commented May 4, 2018

How to solve this problem that it doesn't hava market-1501/bounding_box_train_256?

@layumi
Copy link
Owner

layumi commented May 4, 2018

Hi @daySunny
Have you run the prepare_data.m? The code will generate this folder.
( Sometime you may need to mkdir market-1501/bounding_box_train_256 first. Matlab do not have the right to mkdir)

@daySunny
Copy link

daySunny commented May 4, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants