Comments (6)
训练自己的数据集(BDD100K),按照要求已转为VOC格式的XML文件,并通过xml_to_txt.py成功生成TXT文件,然后在cfg文件修改好DATA_PATH(使用绝对路径),运行train.py报错
assert img is not None, 'File Not Found ' + img_path
AssertionError: File Not Found /home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/943f0721-97e0dfd4.jpg图片已放置在data/JPEGImages文件夹内
请问问题出在哪里?
YOLOv4-pytorch/utils/datasets.py
Line 69 in bcb1698
可以自己debug一下,看annotations列表是否为空。
from yolov4-pytorch.
训练自己的数据集(BDD100K),按照要求已转为VOC格式的XML文件,并通过xml_to_txt.py成功生成TXT文件,然后在cfg文件修改好DATA_PATH(使用绝对路径),运行train.py报错
assert img is not None, 'File Not Found ' + img_path
AssertionError: File Not Found /home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/943f0721-97e0dfd4.jpg
图片已放置在data/JPEGImages文件夹内
请问问题出在哪里?
YOLOv4-pytorch/utils/datasets.py
Line 69 in bcb1698
可以自己debug一下,看annotations列表是否为空。
在data文件夹里,Annotations和JPEGImages文件夹分别放好了标签和图片文件。
请问成功训练起来了吗,可否指导一下。
from yolov4-pytorch.
训练自己的数据集(BDD100K),按照要求已转为VOC格式的XML文件,并通过xml_to_txt.py成功生成TXT文件,然后在cfg文件修改好DATA_PATH(使用绝对路径),运行train.py报错
assert img is not None, 'File Not Found ' + img_path
AssertionError: File Not Found /home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/943f0721-97e0dfd4.jpg
图片已放置在data/JPEGImages文件夹内
请问问题出在哪里?
YOLOv4-pytorch/utils/datasets.py
Line 69 in bcb1698
可以自己debug一下,看annotations列表是否为空。
在data文件夹里,Annotations和JPEGImages文件夹分别放好了标签和图片文件。
请问成功训练起来了吗,可否指导一下。
我跑通了整个项目的,data文件里放置一个txt文档,类似于这个E:\YOLOv4-pytorch\VOCdevkit\VOC2007\JPEGImages\000000000139.jpg 358,218,414,320,0
,上面有训练图片的地址和对应的标注框
from yolov4-pytorch.
训练自己的数据集(BDD100K),按照要求已转为VOC格式的XML文件,并通过xml_to_txt.py成功生成TXT文件,然后在cfg文件修改好DATA_PATH(使用绝对路径),运行train.py报错
assert img is not None, 'File Not Found ' + img_path
AssertionError: File Not Found /home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/943f0721-97e0dfd4.jpg
图片已放置在data/JPEGImages文件夹内
请问问题出在哪里?
YOLOv4-pytorch/utils/datasets.py
Line 69 in bcb1698
可以自己debug一下,看annotations列表是否为空。
在data文件夹里,Annotations和JPEGImages文件夹分别放好了标签和图片文件。
请问成功训练起来了吗,可否指导一下。我跑通了整个项目的,data文件里放置一个txt文档,类似于这个
E:\YOLOv4-pytorch\VOCdevkit\VOC2007\JPEGImages\000000000139.jpg 358,218,414,320,0
,上面有训练图片的地址和对应的标注框
我的test_annotation和train_annotation的TXT文档是这样的。
/home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/0000f77c-6257be58.jpg 1125,133,1156,210,9 1156,136,1191,210,9 1101,211,1170,233,8 0,0,100,122,8 45,254,357,487,0 507,221,908,442,0 0,0,102,133,8
类似这样的格式,是使用作者提供的工具生成的,请问这样写路径(绝对路径)有没有问题
在linux系统上跑的
我的数据集目录结构是这样的
-YOLOv4-pytorch
---data
-----Annotations
-------943f0721-97e0dfd4.xml
-------...(存放标签的文件夹)
-----JPEGImages
-------943f0721-97e0dfd4.jpg
-------...(存放图片的文件夹)
错误代码:
AssertionError: File Not Found /home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/943f0721-97e0dfd4.jpg
from yolov4-pytorch.
训练自己的数据集(BDD100K),按照要求已转为VOC格式的XML文件,并通过xml_to_txt.py成功生成TXT文件,然后在cfg文件修改好DATA_PATH(使用绝对路径),运行train.py报错
assert img is not None, 'File Not Found ' + img_path
AssertionError: File Not Found /home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/943f0721-97e0dfd4.jpg
图片已放置在data/JPEGImages文件夹内
请问问题出在哪里?
YOLOv4-pytorch/utils/datasets.py
Line 69 in bcb1698
可以自己debug一下,看annotations列表是否为空。
在data文件夹里,Annotations和JPEGImages文件夹分别放好了标签和图片文件。
请问成功训练起来了吗,可否指导一下。我跑通了整个项目的,data文件里放置一个txt文档,类似于这个
E:\YOLOv4-pytorch\VOCdevkit\VOC2007\JPEGImages\000000000139.jpg 358,218,414,320,0
,上面有训练图片的地址和对应的标注框我的test_annotation和train_annotation的TXT文档是这样的。
/home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/0000f77c-6257be58.jpg 1125,133,1156,210,9 1156,136,1191,210,9 1101,211,1170,233,8 0,0,100,122,8 45,254,357,487,0 507,221,908,442,0 0,0,102,133,8
类似这样的格式,是使用作者提供的工具生成的,请问这样写路径(绝对路径)有没有问题
在linux系统上跑的我的数据集目录结构是这样的
-YOLOv4-pytorch
---data
-----Annotations
-------943f0721-97e0dfd4.xml
-------...(存放标签的文件夹)
-----JPEGImages
-------943f0721-97e0dfd4.jpg
-------...(存放图片的文件夹)错误代码:
AssertionError: File Not Found /home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/943f0721-97e0dfd4.jpg
你这个文件的命名方式有点奇怪,你试试改一下图片名和标注名呢
from yolov4-pytorch.
训练自己的数据集(BDD100K),按照要求已转为VOC格式的XML文件,并通过xml_to_txt.py成功生成TXT文件,然后在cfg文件修改好DATA_PATH(使用绝对路径),运行train.py报错
assert img is not None, 'File Not Found ' + img_path
AssertionError: File Not Found /home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/943f0721-97e0dfd4.jpg
图片已放置在data/JPEGImages文件夹内
请问问题出在哪里?
YOLOv4-pytorch/utils/datasets.py
Line 69 in bcb1698
可以自己debug一下,看annotations列表是否为空。
在data文件夹里,Annotations和JPEGImages文件夹分别放好了标签和图片文件。
请问成功训练起来了吗,可否指导一下。我跑通了整个项目的,data文件里放置一个txt文档,类似于这个
E:\YOLOv4-pytorch\VOCdevkit\VOC2007\JPEGImages\000000000139.jpg 358,218,414,320,0
,上面有训练图片的地址和对应的标注框我的test_annotation和train_annotation的TXT文档是这样的。
/home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/0000f77c-6257be58.jpg 1125,133,1156,210,9 1156,136,1191,210,9 1101,211,1170,233,8 0,0,100,122,8 45,254,357,487,0 507,221,908,442,0 0,0,102,133,8
类似这样的格式,是使用作者提供的工具生成的,请问这样写路径(绝对路径)有没有问题
在linux系统上跑的
我的数据集目录结构是这样的
-YOLOv4-pytorch
---data
-----Annotations
-------943f0721-97e0dfd4.xml
-------...(存放标签的文件夹)
-----JPEGImages
-------943f0721-97e0dfd4.jpg
-------...(存放图片的文件夹)
错误代码:
AssertionError: File Not Found /home/amax/lf2/YOLOv4-pytorch/data/JPEGImages/943f0721-97e0dfd4.jpg你这个文件的命名方式有点奇怪,你试试改一下图片名和标注名呢
谢谢你,我终于找到自己的问题所在,我的JPEGImages文件夹名大小写字母搞错了。麻烦了。
from yolov4-pytorch.
Related Issues (20)
- 问题 HOT 1
- RuntimeError: shape '[256, 256, 3, 3]' is invalid for input of size 16301 HOT 3
- 如何修改训练图片大小并且使用多尺度训练策略 HOT 2
- 关于CBAM的问题 HOT 2
- ValueError: not enough values to unpack (expected 3, got 0) HOT 2
- ValueError: not enough values to unpack (expected 3, got 2) HOT 1
- 可以放入负样本嘛 HOT 1
- CUDA_VISIBLE_DEVICES=0 nohup python -u train.py --weight_path weight/yolov4.weights --gpu_id 0 > nohup.log 2>&1 & HOT 2
- 训练好的模型百度网盘提取码是多少? HOT 1
- How to train model using dataset with another resolution?
- When I set the activate='relu', I met the RuntimeError. (Solved) HOT 1
- please provide best weights after training HOT 1
- Darknet pretrained weight file link corrupted HOT 1
- YOLOv4 with CBAM HOT 1
- Evaluator.py map issue with dataset HOT 5
- Error for detection HOT 1
- Error in detection HOT 2
- 多尺度训练,NUMBER_WORKERS
- Pretrained mobilev2 not accessible
- 姐姐,使用voc_best.pt导入失败呀
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 yolov4-pytorch.