Skip to content

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

Description

@naziaperwaiz

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,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions