Comments (8)
I changed to another mp4 file. It works.
so It is about video file format problem.
from yolox.
the video demo is not working.
from yolox.
please show us your log.
from yolox.
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
from yolox.
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
from yolox.
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?
from yolox.
(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!
from yolox.
I tested with yolov5 never have this type a problem
from yolox.
Related Issues (20)
- 有关input_size和test_size的设置问题
- Is there any TFLite inference script to check inference for the converted TFLite model(YoloX-Tiny)
- ImageNet Pretraining HOT 1
- Is calculating AP50 in this manner correct?
- YOLOX OpenVINO Model Batch Inference issue HOT 1
- torch2trt 转换问题
- How do I get the name and similarity of an object
- 将yolox利用onnxruntime推理时模型输出后结果需要利用下面代码映射到原图上,但是直接利用pth进行推理时,没有看到这一步,这个是为什么?
- No detection when using yolox with libtorch.
- YOLOX installation Issue - Clone Issue: Public Key Denied HOT 1
- Image data repeat resize and compute ratio bugs HOT 5
- Bug: mosaic_prob is no 1 or 0, AttributeError: 'int' object has no attribute 'numel'
- Seeking Guidance on Tuning Data Augmentation Parameters in YOLOX
- python 的 tensorrt 模型 怎么解码输出结果 HOT 1
- Given groups=1, weight of size [168, 337, 1, 1], expected input[1, 336, 2, 2] to have 337 channels, but got 336 channels instead
- mAP一直是下降状态
- TypeError: topk(): argument 'k' must be int, not Tensor HOT 1
- When I modify the training classes, there are some errors while training (KeyError: 'cat' if self.cache and self.cache_type == "ram":)
- Training AP is always 0 using coco128 dataset HOT 2
- Query Regarding `class_agnostic` Parameter in COCOEvaluator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolox.