Comments (6)
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.
No problem. Thank you very much, let me know it there are any other issues.
from pytorch-yolov3.
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.
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 thisvalid.txt
. Currently, each of those only contains one entry. The purpose of thesetrain.txt
andvalid.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.
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.
This is the answer I want. By the way, Thank you very much for your excellent code!!!!
from pytorch-yolov3.
Related Issues (20)
- Replace own `Mish` implementation by torch's HOT 5
- Crash after processing JSON to RDF HOT 2
- Need help with getting bboxes.
- very low mAP on coco val2014 when training from scratch HOT 18
- how to adjust learning rates or something to be better when using a pretrained model to train my dataset?please give me some advice HOT 5
- i'm using yolov3.weights to test data/sample/, i found there are some wrong bboxes which are different from this projects HOT 8
- Unable to fully load data classes of classes.names HOT 1
- Questions regarding the evaluation model in train.py and test.py HOT 1
- PyTorch-YOLOv3 Tracking
- is woring in 3090,lower fps! HOT 2
- for Linux?or for windows? HOT 6
- mAP nearly zero? HOT 3
- Testing Suite
- 关于pytorchyolo1.8.0和GPU不兼容的问题 HOT 1
- 怎么把pytorchyolo卸载干净呀? HOT 2
- how can i calculate the params and flops of yolov3-tiny model 如何计算 yolov3-tiny 模型的参数和计算量?
- Would support torchv2.2.2?
- tensorboard没有显示的结果? HOT 1
- How to compute FPS
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-yolov3.