Comments (9)
The get_coco2017.sh didnt work for me, I am trying to use the .txt annotations from steps https://github.com/ultralytics/yolov5/blob/master/data/scripts/get_coco.sh
from pytorch_yolov4.
https://github.com/WongKinYiu/PyTorch_YOLOv4/blob/master/data/get_coco2017.sh
from pytorch_yolov4.
Thank very much for answering my question. I had been tried several times, but still have an error.
I'm just download your github code, and download the data from get_coco2017.sh.
After downloaded, I typed test_half.py in cmd.
Traceback (most recent call last):
File "test_half.py", line 257, in
opt.augment)
File "test_half.py", line 64, in test
dataset = LoadImagesAndLabels(path, img_size, batch_size, rect=True, single_cls=opt.single_cls)
File "D:\PyTorch_YOLOv4-master_Wo\utils\datasets.py", line 262, in init
assert os.path.isfile(path), 'File not found %s. See %s' % (path, help_url)
AssertionError: File not found ..\coco\val2017.txt. See https://github.com/ultralytics/yolov3/wiki/Train-Custom-Data
from pytorch_yolov4.
where is your coco path?
from pytorch_yolov4.
My coco path is [ PyTorch_YOLOv4-master\data\coco ]. Inside this coco file is coco2017labels.zip unzip data.
from pytorch_yolov4.
so you should modify path in your .data file from ../coco/ to ./data/coco/
from pytorch_yolov4.
I just try to put val2017.txt under the file PyTorch_YOLOv4-master, this time the error is [ No such file or directory: '.\images\val2017\000000182611.jpg' ].
Because I working on windows system, I can write some simple codes to set the path for feeding the .jpg. Thank you very much for helping me.
from pytorch_yolov4.
also change the path to correct path in your val2017.txt
from pytorch_yolov4.
Thank you for reminding.
from pytorch_yolov4.
Related Issues (20)
- AP is very low
- High GPU usage
- weights/yolov4-pacsp.pt HOT 1
- Training Error about yolov4-tiny in branch u5
- How to solve this error? RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu) HOT 8
- Training/(YAML) Data Loading Error: train.py line 537 and line 67 HOT 1
- Training Error: TypeError: No loop matching the specified signature and casting was found for ufunc greater HOT 4
- How to implement freeze layer HOT 1
- Weight links are down
- pretrained_ models HOT 1
- 运行detect.py时出现错误,请问该怎么改 HOT 1
- RuntimeError: shape '[2, 3, 9, 80, 80]' is invalid for input of size 230400 HOT 1
- anno_json = glob.glob('../coco/annotations/instances_val*.json')[0] # annotations json IndexError: list index out of range
- Links to weight files are not functioning HOT 2
- test.py运行提示label错误
- RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation.
- Error training your own data set HOT 1
- get_coco2017 issue unziping labels inside coco2017labels.zip HOT 1
- New links to download the pretrained weights?
- How to count the number of params in my custom cfg?
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 pytorch_yolov4.