ultrasound-nerve-segmentation
ultrasound-nerve-segmentation copied to clipboard
Error, when I start data.py
`(base) C:\Users\BBCCA\Desktop\ultrasound-nerve-segmentation-master>python data.py
Traceback (most recent call last):
-File "data.py", line 92, in
TypeError: 'float' object cannot be interpreted as an integer`
I have Python 3.6.6 x64 (Anaconda For Windows)
Попробуйте заменить:
total = len(images) / 2 на (целочисленное деление):
total = len(images) // 2
This solved the issue for me:
total = int(len(images) / 2)
Difference?