Skip to content

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

@naziaperwaiz

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions