Comments (3)
请问解决了吗?
from yolo-fastestv2.
I got the same error
Initialize weights: model/backbone/backbone.pth
Starting training for 10 epochs...
Epoch:0 LR:0.000002 CIou:3.969100 Obj:62.182312 Cls:23.107639 Total:89.259048: 100%|██████████| 117/117 [00:16<00:00, 6.95it/s]
0%| | 0/117 [00:00<?, ?it/s]Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Users\ashwi\AppData\Local\Programs\Python\Python37\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Users\ashwi\AppData\Local\Programs\Python\Python37\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\ashwi\PycharmProjects\NeuralRenderer\venv\lib\site-packages\torch\utils\data_utils\pin_memory.py", line 28, in _pin_memory_loop
idx, data = r
ValueError: not enough values to unpack (expected 2, got 0)
0%| | 0/117 [00:05<?, ?it/s]
Traceback (most recent call last):
File "C:/Users/ashwi/PycharmProjects/Yolo-FastestV2/train.py", line 99, in
for imgs, targets in pbar:
File "C:\Users\ashwi\PycharmProjects\NeuralRenderer\venv\lib\site-packages\tqdm\std.py", line 1158, in iter
for obj in iterable:
File "C:\Users\ashwi\PycharmProjects\NeuralRenderer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 349, in iter
self._iterator._reset(self)
File "C:\Users\ashwi\PycharmProjects\NeuralRenderer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 852, in _reset
data = self._get_data()
File "C:\Users\ashwi\PycharmProjects\NeuralRenderer\venv\lib\site-packages\torch\utils\data\dataloader.py", line 1029, in _get_data
raise RuntimeError('Pin memory thread exited unexpectedly')
RuntimeError: Pin memory thread exited unexpectedly
Process finished with exit code 1
from yolo-fastestv2.
明白了,我使用的是 Pytorch 1.7.1,所以他们在数据加载器中有问题
将 Pytorch 更新到最新版本以解决该问题
Got it, I was using Pytorch 1.7.1 so they have an issue with the dataloader
Update Pytorch to the latest version to get rid of the issue
from yolo-fastestv2.
Related Issues (20)
- Why did you choose shufflenetv2 architecture?
- 大佬,如何利用多块gpu进行学习呢? HOT 1
- during training , why precision and ap are all 0?
- android demo
- camera realtime demo HOT 1
- how to train background image without labels?
- 导出onnx后推理结果和pth不同
- train with custom dataset and deploy on raspberry pi4?
- 请问大佬的ncnn对头后处理的模块能用py写一下吗
- 请问多类别训练为什么只能识别到单一类别
- bug
- An error occurred during YOLOX training HOT 1
- 请问怎么调用gpu? HOT 1
- Why the mAP on coco val set (5000 images) is only 0.0242 when I use the coco2017-0.241078ap-model.pth?
- python版本 HOT 1
- 有对应的论文吗
- RuntimeError: result type Float can't be cast to the desired output type long int HOT 3
- 使用ncnn转换之后无法推理
- Python Too Slow Inference Speed, Colab T4 Gpu
- Shufflenet pretrained
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 yolo-fastestv2.