Skip to content
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

detector #55

Closed
flydragon2018 opened this issue Jul 21, 2021 · 8 comments
Closed

detector #55

flydragon2018 opened this issue Jul 21, 2021 · 8 comments

Comments

@flydragon2018
Copy link

flydragon2018 commented Jul 21, 2021

minimal detector example is necessary for yolox to become more popular.

@flydragon2018
Copy link
Author

the video demo is not working.

@GOATmessi7
Copy link
Member

please show us your log.

@flydragon2018
Copy link
Author

2021-07-22 07:18:44 | INFO | main:219 - Args: Namespace(camid=0, ckpt='/content/YOLOX/yolox_x.pth.tar', conf=0.3, demo='video', exp_file=None, experiment_name='yolox_x', fp16=False, fuse=False, name='yolox-x', nms=0.65, path='/content/YOLOX/holo1.mp4', save_result=True, trt=False, tsize=640)
/usr/local/lib/python3.7/dist-packages/torch/nn/functional.py:718: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /pytorch/c10/core/TensorImpl.h:1156.)
return torch.max_pool2d(input, kernel_size, stride, padding, dilation, ceil_mode)
2021-07-22 07:18:46 | INFO | main:229 - Model Summary: Params: 99.07M, Gflops: 281.93
2021-07-22 07:18:49 | INFO | main:240 - loading checkpoint
2021-07-22 07:18:50 | INFO | main:245 - loaded checkpoint done.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x56022396a000] moov atom not found
VIDIOC_REQBUFS: Inappropriate ioctl for device
2021-07-22 07:18:50 | INFO | main:183 - video save_path is ./YOLOX_outputs/yolox_x/vis_res/2021_07_22_07_18_50/holo1.mp4

@flydragon2018
Copy link
Author

image works fine.

2021-07-22 06:59:07 | INFO | main:219 - Args: Namespace(camid=0, ckpt='yolox_s.pth.tar', conf=0.3, demo='image', exp_file=None, experiment_name='yolox_s', fp16=False, fuse=False, name='yolox-s', nms=0.65, path='assets/dog.jpg', save_result=True, trt=False, tsize=640)
/usr/local/lib/python3.7/dist-packages/torch/nn/functional.py:718: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /pytorch/c10/core/TensorImpl.h:1156.)
return torch.max_pool2d(input, kernel_size, stride, padding, dilation, ceil_mode)
2021-07-22 06:59:08 | INFO | main:229 - Model Summary: Params: 8.97M, Gflops: 26.81
2021-07-22 06:59:11 | INFO | main:240 - loading checkpoint
2021-07-22 06:59:11 | INFO | main:245 - loaded checkpoint done.
2021-07-22 06:59:12 | INFO | main:128 - Infer time: 0.6857s
2021-07-22 06:59:12 | INFO | main:165 - Saving detection result in ./YOLOX_outputs/yolox_s/vis_res/2021_07_22_06_59_11/dog.jpg

@flydragon2018
Copy link
Author

I changed to another mp4 file. It works.
so It is about video file format problem.

@flydragon2018
Copy link
Author

very strange. I am using colab. video files by wget directly not working. however if I downloaded the video file and upload to google drive, then cp from there, it works.

network transport problem?

@nocolour
Copy link

(env) E:\Projects\YOLOX>python tools/demo.py video -n yolox-s -c ./yolox_s.pth --path assets/test.mp4 --conf 0.25 --nms 0.45 --tsize 640 --save_result --device gpu
2021-09-30 14:22:28.848 | INFO | main:main:255 - Args: Namespace(camid=0, ckpt='./yolox_s.pth', conf=0.25, demo='video', device='gpu', exp_file=None, experiment_name='yolox_s', fp16=False, fuse=False, legacy=False, name='yolox-s', nms=0.45, path='assets/test.mp4', save_result=True, trt=False, tsize=640)
2021-09-30 14:22:29.065 | INFO | main:main:265 - Model Summary: Params: 8.97M, Gflops: 26.81
2021-09-30 14:22:31.811 | INFO | main:main:278 - loading checkpoint
2021-09-30 14:22:31.958 | INFO | main:main:282 - loaded checkpoint done.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000027cd4592c80] moov atom not found
2021-09-30 14:22:32.359 | INFO | main:imageflow_demo:222 - video save_path is ./YOLOX_outputs\yolox_s\vis_res\2021_09_30_14_22_31\test.mp4

"moov atom not found"

all video have same problem. this is a bug!

@nocolour
Copy link

I tested with yolov5 never have this type a problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants