-
Notifications
You must be signed in to change notification settings - Fork 11
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
Tuple index out of range #1
Comments
I see the same issue while testing the archive file and data. |
This error is most probably due to changes in one of the dependencies that is not backwards compatible. I tested it with the following dependency versions, and it ran without a problem (tested on Windows 10, python 3.7.4, CUDA 11.1, cuDNN 7.6): numpy==1.18.5 I hope I will eventually get around uploading an updated and refactored version of the code that will also run with more recent versions of the dependencies, but in the meantime, please let me know if using the above-mentioned versions fixed your issue. PS: If you are getting an error during saving the CycleGAN model, you might also need to shorten the path name (the default after downloading, i.e., C:\users<username>\Documents\automatic-sem-image-segmentation-master\Automatic_SEM_Image_Segmentation might create too long pathnames after appending the model save path, C:\users<username>\Documents\segmentation should however work). |
Were you able to fix this? |
The error should not occur when using the versions mentioned in my comment above. Please use
to install the packages with the versions mentioned above. And please also make sure you also have the correct versions of python, CUDA, and cuDNN installed (if I remember correctly, tensorflow 2.2 is not compatible with python 3.9). I am currently working on an updated and refactored version of the code that will run with newer versions of python and tensorflow which I hope to release next week, but in the meantime, please try with the versions mentioned above. |
Ladies and Gentlemen,
thank you for sharing this very interesting work. I'm not a specialist in neural networks but anyway very interested in trying to apply your method.
I updated and installed all required packeges, using pip(3) and python 3.9.5. However, using the example from the folder "Archive/Automatic_SEM_Image_Segmentation' I'm getting the error:
File "C:\Users***\Desktop\automatic-sem-image-segmentation-master\Archive\Automatic_SEM_Image_Segmentation\startProcess.py", line 347, in
imgTiles = imgTiles.reshape([imgTiles.shape[0], imgTiles.shape[1], imgTiles.shape[2], 1]) / 255.0
IndexError: tuple index out of range
As the template is used right as is I can not figure out what's causing the problem here. Any suggestion is very welcome, thank you in advance!
The text was updated successfully, but these errors were encountered: