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

IndexError: index -1 is out of bounds for axis 0 with size 0 #3

Open
bemoregt opened this issue May 15, 2019 · 0 comments
Open

IndexError: index -1 is out of bounds for axis 0 with size 0 #3

bemoregt opened this issue May 15, 2019 · 0 comments

Comments

@bemoregt
Copy link

Hi, @fabioperez

I met this error when run generate_lesions.py

Kerb:skin-data-augmentation kerbal$ python3 generate_lesions.py $TRAIN_CSV $TRAIN_DIR 42000 --sigma 20 --output mix_lesion_images
ISIC_0011205 ISIC_0014639
ISIC_0000468 ISIC_0013360
ISIC_0000007 ISIC_0000206
ISIC_0000475 ISIC_0011199
ISIC_0000103 ISIC_0009504
Traceback (most recent call last):
File "generate_lesions.py", line 77, in
args.sigma)
File "generate_lesions.py", line 67, in main
gauss_sigma=sigma)
File "/Users/kerbal/skin-data-augmentation/auglib/augmentation/two_lesions.py", line 67, in mix_lesions
lesion_bg_masked)
File "/Users/kerbal/skin-data-augmentation/auglib/augmentation/two_lesions.py", line 51, in _histogram_matching
t_quantiles /= t_quantiles[-1]
IndexError: index -1 is out of bounds for axis 0 with size 0

What's wrong to me ??

Thanks in advance.
Best,

from @bemoregt.

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

1 participant