Kevinnan-teen / Intelligent-Traffic-Based-On-CV

本项目是基于计算机视觉的端到端交通路口智能监控系统.采用的设计架构由SRS流媒体服务器、GPU服务器、Local客户端三部分组成.可将远端视频流通过rtmp协议传输到流媒体服务器,然后经过目标检测等一些列算法对视频进行分析,最后在本地客户端查看分析结果.项目主要用Python实现,流媒体服务器采用开源的SRS实时视频服务器搭建,GPU服务器使用YOLO模型实现道路目标如人、车、交通灯等物体的识别,同时还支持并发连接.客户端基于PyQt5进行开发.
http://kevinnan.org.cn/
313 stars 73 forks source link

服务端多线程序列化报错 #7

Open SoNo2Echo opened 1 year ago

SoNo2Echo commented 1 year ago

Traceback (most recent call last): File "d:\BAG\Intelligent-Traffic-Based-On-CV-version2.0\scripts_2\server_selector.py", line 313, in sa = ServerAchieve() File "d:\BAG\Intelligent-Traffic-Based-On-CV-version2.0\scripts_2\server_selector.py", line 58, in init process.start() File "C:\Users\10210.conda\envs\kkdl\lib\multiprocessing\process.py", line 121, in start self._popen = self._Popen(self) File "C:\Users\10210.conda\envs\kkdl\lib\multiprocessing\context.py", line 224, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "C:\Users\10210.conda\envs\kkdl\lib\multiprocessing\context.py", line 327, in _Popen return Popen(process_obj) File "C:\Users\10210.conda\envs\kkdl\lib\multiprocessing\popen_spawn_win32.py", line 93, in init reduction.dump(process_obj, to_child) File "C:\Users\10210.conda\envs\kkdl\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) TypeError: cannot pickle '_thread.lock' object

有老哥知道怎么解决吗?卡住很久了

tingyukanfeng commented 11 months ago

兄弟,解决了吗,我也被这个问题卡到了

SoNo2Echo commented 11 months ago

没有解决,我直接把检测这一块东西放到客户端了。 

Biscuit @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年11月14日(星期二) 凌晨0:14 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Kevinnan-teen/Intelligent-Traffic-Based-On-CV] 服务端多线程序列化报错 (Issue #7)

兄弟,解决了吗,我也被这个问题卡到了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

tingyukanfeng commented 11 months ago

好像是系统的问题,必须要使用linux,才行

huaijiu99 commented 11 months ago

我也遇到这个问题卡住了,可以参考一下您的代码吗

SoNo2Echo commented 10 months ago

尝试在Linux环境下运行,Win有问题

Biscuit @.***

 

------------------ 原始邮件 ------------------ 发件人: "Kevinnan-teen/Intelligent-Traffic-Based-On-CV" @.>; 发送时间: 2023年11月30日(星期四) 下午5:09 @.>; @.**@.>; 主题: Re: [Kevinnan-teen/Intelligent-Traffic-Based-On-CV] 服务端多线程序列化报错 (Issue #7)

我也遇到这个问题卡住了,可以参考一下您的代码吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jiaqingxiang111 commented 9 months ago

Traceback (most recent call last): File "C:/programSoftware/Python/cattleRecognition/yolo-slowfast/IntelligentTraffic/scripts_2/server_selector2.py", line 288, in sa = ServerAchieve() File "C:/programSoftware/Python/cattleRecognition/yolo-slowfast/IntelligentTraffic/scripts_2/server_selector2.py", line 54, in init process.start() File "D:\anzbao-biancheng\anaconda\anzhuangbao\envs\car\lib\multiprocessing\process.py", line 105, in start self._popen = self._Popen(self) File "D:\anzbao-biancheng\anaconda\anzhuangbao\envs\car\lib\multiprocessing\context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "D:\anzbao-biancheng\anaconda\anzhuangbao\envs\car\lib\multiprocessing\context.py", line 322, in _Popen return Popen(process_obj) File "D:\anzbao-biancheng\anaconda\anzhuangbao\envs\car\lib\multiprocessing\popen_spawn_win32.py", line 65, in init reduction.dump(process_obj, to_child) File "D:\anzbao-biancheng\anaconda\anzhuangbao\envs\car\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) TypeError: can't pickle _thread.lock objects

Process finished with exit code 1 We have encountered the same problem. Have you solved it yet? I haven't solved this problem yet? 咱俩遇到同一个问题了,请问您解决了吗,我目前还没解决掉这个问题?

jiaqingxiang111 commented 9 months ago

换成linux就可以解决掉了吗