You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment"; #4570
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
when I detetcted on the video by --video-input video.mp4,I got a error:
Traceback (most recent call last):
File "demo.py", line 163, in
for vis_frame in tqdm.tqdm(demo.run_on_video(video, args.confidence_threshold), total=num_frames):
File "/home/juneana/anaconda3/envs/SWINTS/lib/python3.8/site-packages/tqdm/std.py", line 1195, in iter
for obj in iterable:
File "/media/juneana/newvolume/model/SwinTextSpotter-main/demo/predictor.py", line 133, in run_on_video
yield process_predictions(frame, self.predictor(frame))
File "/media/juneana/newvolume/model/SwinTextSpotter-main/demo/predictor.py", line 102, in process_predictions
vis_frame = video_visualizer.draw_instance_predictions(frame, predictions)
File "/media/juneana/newvolume/model/SwinTextSpotter-main/detectron2/utils/video_visualizer.py", line 84, in draw_instance_predictions
detected = [
File "/media/juneana/newvolume/model/SwinTextSpotter-main/detectron2/utils/video_visualizer.py", line 85, in
_DetectedInstance(classes[i], boxes[i], mask_rle=None, color=None, ttl=8)
TypeError: 'NoneType' object is not subscriptable
Beta Was this translation helpful? Give feedback.
All reactions