biparnakroy / pseudoLabelGeneratorForYOLO

Creating datasets in YOLO format using pretrained YOLO model in Darknet framework which could be used to train the model further
BSD 3-Clause "New" or "Revised" License
23 stars 3 forks source link

transfer yolo labels #2

Open Hhhharper opened 4 years ago

Hhhharper commented 4 years ago

usage: yolo.py [-h] -i IMAGE -t TEXT -c CLASSES yolo.py: error: the following arguments are required: -c/--classes usage: yolo.py [-h] -i IMAGE -t TEXT -c CLASSES yolo.py: error: the following arguments are required: -c/--classes usage: yolo.py [-h] -i IMAGE -t TEXT -c CLASSES yolo.py: error: the following arguments are required: -c/--classes

hello,i am so sorry to bother you. Sir, i don't know why the code is wrong. May I get your help? Thanks.

biparnakroy commented 4 years ago

Hello @Hhhharper , there was a problem in yolo.sh, i have fixed it, i hope it runs now

for i in  <num list>
do
  python3 yolo.py --image dataset/data$i.jpg --text dataset/data$i.txt --classes classes.txt > dataset/data$i.txt
done

here classes.txt is the list of classes of your dataset

larrywal-express commented 3 years ago

for i in do python3 yolo.py --image dataset/data$i.jpg --text dataset/data$i.txt --classes classes.txt > output/data$i.txt done

create an output file to save the .txt, moreso add +" " to line 33 in yolo.py