We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
`(base) C:\Users\BBCCA\Desktop\ultrasound-nerve-segmentation-master>python data.py
Traceback (most recent call last): -File "data.py", line 92, in ----create_train_data() --File "data.py", line 19, in create_train_data ----imgs = np.ndarray((total, image_rows, image_cols), dtype=np.uint8)
TypeError: 'float' object cannot be interpreted as an integer`
I have Python 3.6.6 x64 (Anaconda For Windows)
The text was updated successfully, but these errors were encountered:
Попробуйте заменить:
total = len(images) / 2 на (целочисленное деление):
total = len(images) // 2
Sorry, something went wrong.
TypeError: 'float' object cannot be interpreted as an integer
920460e
Look into Issues (jocicmarko#79)
This solved the issue for me:
total = int(len(images) / 2)
Difference?
No branches or pull requests
`(base) C:\Users\BBCCA\Desktop\ultrasound-nerve-segmentation-master>python data.py
Traceback (most recent call last):
-File "data.py", line 92, in
----create_train_data()
--File "data.py", line 19, in create_train_data
----imgs = np.ndarray((total, image_rows, image_cols), dtype=np.uint8)
TypeError: 'float' object cannot be interpreted as an integer`
I have Python 3.6.6 x64 (Anaconda For Windows)
The text was updated successfully, but these errors were encountered: