-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error: CoreML conversion failure: 'NoneType' object has no attribute 'description' #4
Comments
In general: Don't change the number of classes, just edit The Traceback is misleading, actually the coreml conversion fails, but it seems I do not exit the application, so it continues to run and then throws later an exception. This https://github.com/dbsystel/yolov5-coreml-tools/blob/main/src/coreml_export/main.py#L79 line seems to fail, so the actual conversion from torchscript, but the exception is not printed / empty? A little bit weird. As a first step you should use one of the pretrained models to make sure your setup and everything is correct. Then it would help, if you share the model, so I can test myself. |
When I run it with the pretrained model I get the same error as in #2 |
I haven't tried yet, the repo is not actively developed with new features as it works as it is currently for our setup. But I'm happy to help and always accept Pull Requests. I would then recommend trying one of the yolo models that were already tested by me. I believe that should be version 2, 3 or 4. Just to make sure it's not your setup. But if you get the same error for version 5 as in #2, then probably your custom model is the problem. Although you should also get some kind of an error regarding your model. That seems still weird to me. |
Hi, I also encountered the same problem with my custom model even with the pretrained model yolov5s. My way to reproduce is,
class SPPF(nn.Module):
Thanks |
Hi,
I always getting the error shown in the picture.
I didn't used the pretrained model to train my own one, so I changed the number of classes to 1.
Can someone help me with this problem?
I am using:
Python 3.8.8
CoreML toolkit 4.1
Thanks for the help.
The text was updated successfully, but these errors were encountered: