-
Notifications
You must be signed in to change notification settings - Fork 1
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
你好,可以帮忙看看这个问题么 #2
Comments
单独运行的det_sam2_RT.py脚本吗?有VideoProcessor类更详细的参数设置可以提供吗?是在AutoDL镜像中运行的还是?看起来是环境的问题。 |
对的,直接用的镜像,只调整了输入视频路径。 |
我刚刚试了一下镜像,能够正常跑。(使用的是示例视频) 有两个需要注意的点: 您应该用的是我提供的检测模型,,它只能检测球场上的台球,请确保你的视频第一帧能够被检测模型检出东西来,可以在det_sam2_RT.py中VideoProcessor.detect_predict()函数中解除注释: |
能解决吗?是不是第一帧不是条件帧导致的? |
root@8a9aai3284fgl-0:~/segment-anything-2/det_sam2_inference# python Det_SAM2_pipeline.py
Ultralytics YOLOv8.2.82 __ Python-3.10.8 torch-2.3.1+cu121 CUDA:0 (NVIDIA L40S, 45596MiB)
Setup complete __ (224 CPUs, 1007.3 GB RAM, 4362.2/14298.2 GB disk)
---:30,:30,:60,:60,:None,
________offload_video_to_cpu:True,offload_state_to_cpu:False
Exception in thread Thread-1 (process_video):
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.10/threading.py", line 1016, in bootstrap_inner
self.run()
File "/root/miniconda3/lib/python3.10/threading.py", line 953, in run
self.target(*self.args, **self.kwargs)
File "/root/segment-anything-2/det_sam2_inference/Det_SAM2_pipeline.py", line 146, in process_video
self.video_processor.inference_state = self.video_processor.process_frame(self.video_processor.pre_frames + frame_idx, frame_rgb)
File "/root/segment-anything-2/det_sam2_inference/det_sam2_RT.py", line 431, in process_frame
self.Detect_and_SAM2_inference(frame_idx)
File "/root/segment-anything-2/det_sam2_inference/det_sam2_RT.py", line 388, in Detect_and_SAM2_inference
for out_frame_idx, out_obj_ids, out_mask_logits in self.predictor.propagate_in_video(
File "/root/miniconda3/lib/python3.10/site-packages/torch/utils/contextlib.py", line 35, in generator_context
response = gen.send(None)
File "/root/segment-anything-2/sam2/sam2_video_predictor.py", line 944, in propagate_in_video
raise RuntimeError("_________")
RuntimeError: ______________________
The text was updated successfully, but these errors were encountered: