-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Can we run two models using different predictor and object detector instances ? #77
Comments
Here is my code for review and this code is for running detection on models: |
It looks like both If the issue persists, please provide specific details about your library or API usage for further assistance. |
Yes it was my mistake I was returning same LocalYoloModel instance in both init methods. for some strange reason when code is run in this above way then it mixes up one model with other due to this bug dataCoco and data values are same which logically impossible because both models are completely different. And if after initializing one model and then I perform some other tasks in between and then initialize other model then this issue is not occurring |
It seems like the models are conflicting due to shared resources or improper separation during initialization. Ensure the |
what do you mean by "explicitly clearing resources between initializing the two models" |
@mnawazshah by "explicitly clearing resources," I mean releasing any shared memory or GPU resources occupied by the first model before initializing the second model. This can be done by ensuring that the first model's instance is properly deleted (using |
but I asked for flutter not python |
Thank you for clarifying. While the Ultralytics repositories and documentation focus primarily on Python, for Flutter-specific issues, ensure that the model instances are completely isolated and independently initialized, avoiding shared resources. If you're still encountering issues, I recommend reaching out to the Flutter community or forums for guidance on integrating YOLO models within Flutter. Let me know if you have further questions related to YOLO itself! |
No description provided.
The text was updated successfully, but these errors were encountered: