-
Notifications
You must be signed in to change notification settings - Fork 34
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
TagLab crashing while starting network training #169
Comments
Thank you to point out this problem! Fixed. |
Thank you for your prompt commit, unfortunately I haven't been able to get the training working after pulling your update due to new and different way's it's crashing. I tried with my main data set, and it crashed this time while importing the Training data with the following error: So I created a smaller project with just a single label as a test and this time it crashed while importing the training data with the following error: Any advice? |
The OverflowError is something unexpected. How many classes do you have ? Please, give us more details. Regarding the second error, this means that you want to train for a class that is not present in the training dataset. We will fix it in a next release by writing a message instead of crashing. Best |
When you say train for a class that is not present in the training dataset, do you mean train for a class that isn't in the scripps dictionary? I'm attempting to train custom labels for corals that aren't present in the scripps dictionary. To answer your question about the Overflow Error I've got 26 classes in my dictionary, you can see almost all of them in the screenshot posted above. But I've been struggling to get the training working at all, even with only one class and a smaller ortho... |
I mean that some of the classes selected are not present in the training dataset (0.0% in your screenshot). Pay attention that if the amount of pixels of some classes with high probability the classifier will not learn how to recognize these classes. |
I'm trying to train a network in TagLab, I've segmented and categorized my orthomosiac, and exported the training dataset. When I try and train a network, TagLab crashes immediately. Here is the error message I get.
Traceback (most recent call last):
File "/Applications/TagLab-main/TagLab.py", line 5112, in trainNewNetwork
dataset_train_info, train_loss_values, val_loss_values = training.trainingNetwork(images_dir_train, labels_dir_train,
File "/Applications/TagLab-main/models/training.py", line 264, in trainingNetwork
datasetTrain.computeAverage()
File "/Applications/TagLab-main/models/coral_dataset.py", line 385, in computeAverage
sum = np.zeros((self.CROP_SIZE, self.CROP_SIZE, 3), dtype=np.float)
File "/Users/mermaid-danny/miniconda3/lib/python3.10/site-packages/numpy/init.py", line 324, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'float'.
np.float
was a deprecated alias for the builtinfloat
. To avoid this error in existing code, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here.The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?
zsh: abort python3 TagLab.py
My training settings
My project
The text was updated successfully, but these errors were encountered: