-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
NameError: global name 'm' is not defined #71
Comments
It seems you are not running the latest code or containers, if you upgraded the code by switch branch or git pull, you can try delete docker containers and images then rerun the script. Let me know if it's your case. |
Thanks for your quick reply. Actually I didn't upgraded the code except for adding a telegram token.
I tried delete images and rerun the script, the problem is still here. I double-checked the log information again and found that there is an ImportError(libnvinfer.so.7) before that error.
This may explain why 'm' is none in the subsequent steps.
To avoid that I miss anything related (like other warnings), I paste the full log information as follows:
|
I searched for some solutions. Some says that it's because TensorRT in my system is not compatible with the app. Do you have any restrictions about TensorRT Version in this app? |
Oh, it seems you need install jetpack 4.5.1 which has tensorrt 7
…On Tue, Apr 26, 2022 at 7:49 PM Kun WANG ***@***.***> wrote:
I searched for some solutions. Some says that it's because TensorRT in my
system is not compatible with the app. Do you have any restrictions about
TensorRT Version in this app?
—
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXRJ7A74WVZ3G3TWV4A3EDVHCTNHANCNFSM5ULRPGUQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Oh no. I think that's the problem... And unfortunately there isn't a safe and direct way to downgrade the Jetpack I think :'( ? |
You can install it on another sdcard.
…On Tue, Apr 26, 2022 at 9:02 PM Kun WANG ***@***.***> wrote:
Oh, it seems you need install jetpack 4.5.1 which has tensorrt 7
… <#m_-5820855119616897237_>
On Tue, Apr 26, 2022 at 7:49 PM Kun WANG *@*.*> wrote: I searched for
some solutions. Some says that it's because TensorRT in my system is not
compatible with the app. Do you have any restrictions about TensorRT
Version in this app? — Reply to this email directly, view it on GitHub <#71
(comment)
<#71 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXRJ7A74WVZ3G3TWV4A3EDVHCTNHANCNFSM5ULRPGUQ
<https://github.com/notifications/unsubscribe-auth/AAXRJ7A74WVZ3G3TWV4A3EDVHCTNHANCNFSM5ULRPGUQ>
. You are receiving this because you commented.Message ID: @.*>
Oh no. I think that's the problem... And unfortunately there isn't a safe
and direct way to downgrade the Jetpack
<https://forums.developer.nvidia.com/t/downgrade-jetpack/169373> I think
:'( ?
Many thanks for your always quick reply. Have a good day!
—
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXRJ7GLLFIQBTBJTYVO6YDVHC37BANCNFSM5ULRPGUQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
launched current nano branch on jetson nano.
added token for telegram bot.
connected to a RTSP camera stream in local network through Shinobi GUI.
ran: run-on-nano.sh
face_detector | [2022-04-26 11:25:47,895: ERROR/ForkPoolWorker-1] Task upload_api-v2.detect[5ac8a3ac-0fa1-4bcf-99dd-cf074bc2abb0] raised unexpected: NameError("global name 'm' is not defined",)
face_detector | Traceback (most recent call last):
face_detector | File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 374, in trace_task
face_detector | R = retval = fun(*args, **kwargs)
face_detector | File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 629, in protected_call
face_detector | return self.run(*args, **kwargs)
face_detector | File "worker.py", line 52, in detect
face_detector | result = m.detect(image_path,trackerid, ts, cameraId, face_filter=None)
face_detector | NameError: global name 'm' is not defined
face_detector | [2022-04-26 11:25:48,063: INFO/MainProcess] Received task: upload_api-v2.detect[6ada6e39-f2db-4e38-832e-cbbdf38449a5] expires:[2022-04-26 11:26:18.000059+00:00]
detector_plugin | error
detector_plugin | null
detector_plugin | add detect_task failed!!
The text was updated successfully, but these errors were encountered: