You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered: