Comments (2)
I can run only in your own .pth while trained myself's (pascalVOC) it failed
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
Traceback (most recent call last):
File "/home/55/yolox-deepsort-main/000.py", line 50, in
main()
File "/home/55/yolox-deepsort-main/000.py", line 24, in main
result = det.feedCap(im) #BGR #this wrong
File "/home/55/yolox-deepsort-main/BaseDetector.py", line 35, in feedCap
im, faces, face_bboxes = update_tracker(self, im)
File "/home/55/yolox-deepsort-main/tracker.py", line 41, in update_tracker
_, bboxes = target_detector.detect(image) #wrong take place in here
File "/home/55/yolox-deepsort-main/AIDetector_pytorch.py", line 121, in detect
boxes = outputs[:, 0:4] #every channel get 4 value
TypeError: 'NoneType' object is not subscriptable
from yolox-deepsort.
我训练自己的voc权重也不行QAQ 但报错跟你不一样
Traceback (most recent call last):
File "D:/pythonProject3/yolox-deepsort-main2/demo.py", line 62, in
main()
File "D:/pythonProject3/yolox-deepsort-main2/demo.py", line 12, in main
det = Detector()
File "D:\pythonProject3\yolox-deepsort-main2\AIDetector_pytorch.py", line 45, in init
self.init_model()
File "D:\pythonProject3\yolox-deepsort-main2\AIDetector_pytorch.py", line 74, in init_model
model.load_state_dict(ckpt["model"])
File "D:\Develop\python\Anaconda3\envs\Pychramproject2\lib\site-packages\torch\nn\modules\module.py", line 1051, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for YOLOX:
size mismatch for head.cls_preds.0.weight: copying a param with shape torch.Size([1, 128, 1, 1]) from checkpoint, the shape in current model is torch.Size([80, 128, 1, 1]).
size mismatch for head.cls_preds.0.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([80]).
size mismatch for head.cls_preds.1.weight: copying a param with shape torch.Size([1, 128, 1, 1]) from checkpoint, the shape in current model is torch.Size([80, 128, 1, 1]).
size mismatch for head.cls_preds.1.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([80]).
size mismatch for head.cls_preds.2.weight: copying a param with shape torch.Size([1, 128, 1, 1]) from checkpoint, the shape in current model is torch.Size([80, 128, 1, 1]).
size mismatch for head.cls_preds.2.bias: copying a param with shape torch.Size([1]) from checkpoint, the shape in current model is torch.Size([80]).
from yolox-deepsort.
Related Issues (10)
- ModuleNotFoundError: No module named 'pycocotools' HOT 1
- "/opt/module/yolox-deepsort/AIDetector_pytorch.py", line 107, in detect
- TypeError: load() missing 1 required positional argument: 'Loader' HOT 2
- onnxruntime for video
- [ bug]: if YOLOX predicted nothing. output is null, code run failed
- TypeError: 'NoneType' object is not subscriptable
- No such file or directory: 'deep_sort/deep_sort/deep/checkpoint/ckpt.t7' HOT 1
- ModuleNotFoundError: No module named 'imutils' HOT 1
- TypeError: 'NoneType' object is not subscriptable
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-deepsort.