Giter Club home page Giter Club logo

Comments (2)

ouyang11111 avatar ouyang11111 commented on August 17, 2024

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.

EchoYGemini avatar EchoYGemini commented on August 17, 2024

我训练自己的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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.