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

Issue in preparing data for training #2

Open
smahajan07 opened this issue Jun 22, 2017 · 2 comments
Open

Issue in preparing data for training #2

smahajan07 opened this issue Jun 22, 2017 · 2 comments

Comments

@smahajan07
Copy link

Hi!

I am preparing my own data for training.
I am running the "generate_train.m" script from pytorch-vdsr and I have changed the path to the folder with images (approx 70k images). I have 2 doubts:

  1. My images are of different dimensions, so will that cause a problem in training?
  2. How do I add labels 'label_x2' and 'label_x4'?

I am to new to HDF format and hence the issue.

@twtygqyy
Copy link
Owner

@smahajan07 sry for the late reply. For LapSRN,you need to generate the hdf5 file with two outputs. I will push the code in the following days, basically just simple modification of "generate_train.m" script from pytorch-vdsr

@smahajan07
Copy link
Author

smahajan07 commented Jun 28, 2017

@twtygqyy I have now managed to write a similar script in python. It seems to be working for now, but I am still facing some minor issue with the dimensions of images (like should we modify the image dimensions before creating HDF5 or let them remain as they are? I have a diverse data set in terms of szie) ; the patches of images it sends in the data and label part. The paper mentions that we send random 64 patches of 128x128, but in 'generate_train.m' we send all patches of the image, right?

PS. will wait for your push and will then compare my python script with it / or matlab, if that works fine on my end.

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

2 participants