Giter Site home page Giter Site logo

Comments (2)

sjw-cool avatar sjw-cool commented on July 4, 2024

报错log如下:
ssh://[email protected]:22037/root/anaconda3/envs/pytorch/bin/python3 -u /root/PychramProject/yolov4-tiny-pytorch-master/predict.py
Loading weights into state dict...
Traceback (most recent call last):
File "/root/PychramProject/yolov4-tiny-pytorch-master/predict.py", line 7, in
yolo = YOLO()
File "/root/PychramProject/yolov4-tiny-pytorch-master/yolo.py", line 47, in init
self.generate()
File "/root/PychramProject/yolov4-tiny-pytorch-master/yolo.py", line 79, in generate
self.net.load_state_dict(state_dict)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1045, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for YoloBody:
size mismatch for yolo_headP5.1.weight: copying a param with shape torch.Size([21, 512, 1, 1]) from checkpoint, the shape in current model is torch.Size([255, 512, 1, 1]).
size mismatch for yolo_headP5.1.bias: copying a param with shape torch.Size([21]) from checkpoint, the shape in current model is torch.Size([255]).
size mismatch for yolo_headP4.1.weight: copying a param with shape torch.Size([21, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([255, 256, 1, 1]).
size mismatch for yolo_headP4.1.bias: copying a param with shape torch.Size([21]) from checkpoint, the shape in current model is torch.Size([255]).

Process finished with exit code 1

from yolov4-tiny-pytorch.

SnakeHit avatar SnakeHit commented on July 4, 2024

遇到了同样的问题,请问为什么呢 @sjw-cool

from yolov4-tiny-pytorch.

Related Issues (20)

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.