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

Error in data preperation for "preprocess_mars_image.py" #5

Open
naziaperwaiz opened this issue Jul 23, 2018 · 3 comments
Open

Error in data preperation for "preprocess_mars_image.py" #5

naziaperwaiz opened this issue Jul 23, 2018 · 3 comments

Comments

@naziaperwaiz
Copy link

For preparation of Mars data, following error is seen:
Traceback (most recent call last):
File "preprocess_mars_image.py", line 100, in
gen_train()
File "preprocess_mars_image.py", line 85, in gen_train
save_train(pool)
File "preprocess_mars_image.py", line 46, in save_train
ts = random.sample(pool, 96)
File "/usr/lib/python2.7/random.py", line 323, in sample
raise ValueError("sample larger than population")
ValueError: sample larger than population

I have tried by reducing the sample size (ts = random.sample(pool, 96)) but the issue pertains. Do i need to change pool size? Any suggestion please?
Regards,

@SMCamila
Copy link
Contributor

I think the reason is the pool variable is an empty list. Could you please check the dataset is well prepared and all the paths are correct?

@naziaperwaiz
Copy link
Author

Many thanks for your response. Yes the issue was in dataset, re-downloading of dataset resolved that issue. Now i am having issue in updating im2rec folder.

The data lists are being prepared correctly in "recs" folder of respective datasets but im2rec folder is not being updated. I have updated the paths in preprocessing_files for im2rec i.e. "home/pc_name/virtualenv_name (i.e.mxnet)/bin/im2rec". What path is supposed to be given for im2rec? Am i giving the right path?
Screen-shot of Mars and ilLIDS-VID preprocessing is attached for information please.

preprocessing
Regards,

@buaaswf
Copy link

buaaswf commented Aug 16, 2018

I have the same issue

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

3 participants