Giter VIP home page Giter VIP logo

Comments (9)

interactivetech avatar interactivetech commented on August 21, 2024 1

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.

WongKinYiu avatar WongKinYiu commented on August 21, 2024

https://github.com/WongKinYiu/PyTorch_YOLOv4/blob/master/data/get_coco2017.sh

from pytorch_yolov4.

harrykeepstudy avatar harrykeepstudy commented on August 21, 2024

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.

WongKinYiu avatar WongKinYiu commented on August 21, 2024

where is your coco path?

from pytorch_yolov4.

harrykeepstudy avatar harrykeepstudy commented on August 21, 2024

My coco path is [ PyTorch_YOLOv4-master\data\coco ]. Inside this coco file is coco2017labels.zip unzip data.

from pytorch_yolov4.

WongKinYiu avatar WongKinYiu commented on August 21, 2024

so you should modify path in your .data file from ../coco/ to ./data/coco/

from pytorch_yolov4.

harrykeepstudy avatar harrykeepstudy commented on August 21, 2024

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.

WongKinYiu avatar WongKinYiu commented on August 21, 2024

also change the path to correct path in your val2017.txt

from pytorch_yolov4.

harrykeepstudy avatar harrykeepstudy commented on August 21, 2024

Thank you for reminding.

from pytorch_yolov4.

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.