Code Monkey home page Code Monkey logo

yolov3_pytorch's People

Contributors

lu-tju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

yolov3_pytorch's Issues

报错信息:ValueError: need at least one array to concatenate,博主这个该怎么改呢,求教,

E:\YOLOv3_pytorch\YOLOv3_pytorch-master\utils\datasets.py:160: UserWarning: loadtxt: Empty input file: "data/labels/006491.txt"
0/3 8/2241 0.0971 0.453 101 0 101 3 0.05
labels0 = np.loadtxt(label_path, dtype=np.float32).reshape(-1, 5)
E:\YOLOv3_pytorch\YOLOv3_pytorch-master\utils\datasets.py:160: UserWarning: loadtxt: Empty input file: "data/labels/008806.txt"
labels0 = np.loadtxt(label_path, dtype=np.float32).reshape(-1, 5)
E:\YOLOv3_pytorch\YOLOv3_pytorch-master\utils\datasets.py:160: UserWarning: loadtxt: Empty input file: "data/labels/003905.txt"
labels0 = np.loadtxt(label_path, dtype=np.float32).reshape(-1, 5)
E:\YOLOv3_pytorch\YOLOv3_pytorch-master\utils\datasets.py:160: UserWarning: loadtxt: Empty input file: "data/labels/000512.txt"
labels0 = np.loadtxt(label_path, dtype=np.float32).reshape(-1, 5)
Traceback (most recent call last):
File "E:/YOLOv3_pytorch/YOLOv3_pytorch-master/train.py", line 211, in
loss_list = train(
File "E:/YOLOv3_pytorch/YOLOv3_pytorch-master/train.py", line 112, in train
for i, (imgs, targets, _, _) in enumerate(dataloader):
File "E:\YOLOv3_pytorch\YOLOv3_pytorch-master\utils\datasets.py", line 216, in next
labels_all = torch.from_numpy(np.concatenate(labels_all, 0))
File "<array_function internals>", line 5, in concatenate
ValueError: need at least one array to concatenate
个人分析过后发现里面警告的部分是对应的label为空,没有标记数据,是不是需要改动代码

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.