-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Problem with loading weights #5
Comments
Wow, that's weird. I'm not really experienced with Django, so that's a bit out of my scope. It seems to be breaking inside yolov7_package library, when it tries to load the weights of the QR detector model. I did a bit of research about the error, and it seems that you must create some reference in your |
Good news is: Assuming a corrupted venv, I created a fresh one and only installed QReader and Django so far. My example code mentioned previously works here as expected. BTW: Because of limited resources on the server, I need to install torch first using
Maybe the pip-package for QReader could do so initially, as else it will fail. Bad news is: I came across a document with a QR code which is correctly detected by |
Thanks a lot! Well, I'll add a warning about pip installing About the image that was detected by In the background, for the QR Detection, QReader runs a Yolov7 model I trained from a mix of public datasets where I applied some data cleaning and data augmentation techniques. But, at the end of the day, there could be some limit cases or some kind of images that were not present in there. If I can find a good set of images, like that one, where QReader fails, I can add them to the dataset a re-train the detector model to make it more robust. So, thank you! |
Using the example code in the readme.md on my workstation has shown that QReader succeeds where other python codes fail (congrats on that!). However, when moving the same small code into a venv on the server where it is meant to be included into a django project (and where hence django is installed), it fails by suddenly landing in django-land (after line 1124 in serialization.py) although django is not invoked in the example code.
This is confusing and kind of above my pay grade...
The text was updated successfully, but these errors were encountered: