Code Monkey home page Code Monkey logo

Comments (6)

Flova avatar Flova commented on June 5, 2024 1

In short this is valid:

bla/set1/labels/image1.txt
bla/set2/labels/image2.txt

This is also valid:

bla/set1/labels/image1.txt
bla/set1/labels/image2.txt

This is invalid:

bla/labels/set1/image1.txt
bla/labels/set2/image2.txt

Note that you need to also adapt the set1.txt and set2.txt files accordingly and that they contain the image, not the label paths. The label paths are inferred automatically.

from pytorch-yolov3.

Flova avatar Flova commented on June 5, 2024 1

No problem. Thank you very much, let me know it there are any other issues.

from pytorch-yolov3.

jaagut avatar jaagut commented on June 5, 2024

You can do this, by changing the path in your <config-file>.data. See this example file.
This file points to two .txt files, one for training and one for validation/verification.

In the example, the configuration points to this train.txt and this valid.txt.
Currently, each of those only contains one entry. The purpose of these train.txt and valid.txt files is to point to the image files that comprise your train and verification datasets.
Each image-path in a new line.

For further information, read here, especially here

I hope, this helped. If you have further questions, please don't hesitate to ask.

from pytorch-yolov3.

J-LINC avatar J-LINC commented on June 5, 2024

You can do this, by changing the path in your <config-file>.data. See this example file. This file points to two .txt files, one for training and one for validation/verification.

In the example, the configuration points to this train.txt and this valid.txt. Currently, each of those only contains one entry. The purpose of these train.txt and valid.txt files is to point to the image files that comprise your train and verification datasets. Each image-path in a new line.

For further information, read here, especially here

I hope, this helped. If you have further questions, please don't hesitate to ask.

First of all, thank you for your reply. I don't know if I made a mistake. EMmm, you mentioned the path for setting up the training set and verification set images, but I meant the path for the labels. In the original text, it was pointed out that the training set and verification set labels need to be placed in the labels folder, which means they are mixed together, but I want to separate the training and verification subfolders under the labels folder to store their respective label files

from pytorch-yolov3.

Flova avatar Flova commented on June 5, 2024

The train and validation datasets are completely independent. They are defined by the txt files that contain relative or absolute paths to the individual images (if you use relative ones make sure to start at the correct folder). You just need to make sure, that the images are in a folder called images and the labels are in a folder called labels. We look for each of the images paths in the respective txt also into the labels folder and search for a file with the same base name and the txt file extension. You should therefore be able to place all images and labels into the same folders or different ones as long as the naming follows the pattern I described.

from pytorch-yolov3.

J-LINC avatar J-LINC commented on June 5, 2024

This is the answer I want. By the way, Thank you very much for your excellent code!!!!

from pytorch-yolov3.

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.