-
Notifications
You must be signed in to change notification settings - Fork 386
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
Missing config : num_masks #515
Comments
Hey there! @lhkyyh, 😄 It seems like you are encountering an issue that raises an error: Perhaps you can resolve this by replacing your local YAML file with the following configuration: type: yolov8_seg
name: yolov8hz
display_name: yolov8hz
model_path: hz.onnx
nms_threshold: 0.20
confidence_threshold: 0.20
classes:
- '0'
- '1' Note:
Finally, you can inspect the input and output nodes of your ONNX file using Netron and paste the details here. |
input |
Thank you for your response. If you're still encountering issues, it's often helpful to try cloning the latest source code, as this can resolve many unknown errors that might be present in older versions. After you've cloned and run the latest source code, if the problem persists, please prepare a compressed package including the ONNX file, the YAML configuration file, and an image that you're certain should be detectable by the model. You can then send this package to the following email address for further assistance: cv_hub@163.com. Thank you for your cooperation! |
After testing your sending file, it seems that everything is normal. As memtion above, please using the latest source code via Btw, an optimal piece of advice would be to set the classes as defined in your ONNX file, rather than using ‘0’ or ‘1’: type: yolov8_seg
name: yolov8hz
display_name: yolov8hz
model_path: hz.onnx
nms_threshold: 0.20
confidence_threshold: 0.20
classes:
- crack
- blocky crack
|
Thanks for your help, it maybe my computer's problem , It runs well in other computer, good lucky to all of you |
Thank you for the update. I believe I might have identified a potential cause for the issue on your computer. It's possible that your environment was contaminated, perhaps by accidentally installing AnyLabeling. This can be resolved by running For the best practice, I recommend creating a new Conda environment and then reinstalling the dependencies with I'm glad to hear that it's running well on another computer. Wishing you all the best too! |
I get it,I create a new environment and replace a file named .anylabelingrc in my computer, it runs well now, Thanks so much again! |
When I load my trained model, I encounter this problem:Missing config : num_masks
![1720627168099](https://private-user-images.githubusercontent.com/144432185/347478317-bfe1fcdd-4abf-4d49-ae8d-a1485cbdfd8c.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNjExNzMsIm5iZiI6MTcyNDI2MDg3MywicGF0aCI6Ii8xNDQ0MzIxODUvMzQ3NDc4MzE3LWJmZTFmY2RkLTRhYmYtNGQ0OS1hZThkLWExNDg1Y2JkZmQ4Yy5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMVQxNzIxMTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZDRjOTFhNDQ4MmIxYjk3MWM3ZDhlYzk4NzUyM2U1ZDkwNTAwYmVkNmM4Y2VkZDA1N2JkOTRlN2RmYzMwNzk1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.gLUqaorHzPhH9rCqkGdTgfBhdprE3WagYo9V4CZxlYg)
The text was updated successfully, but these errors were encountered: