developer0hye / Yolo_Label

GUI for marking bounded boxes of objects in images for training neural network YOLO
MIT License
509 stars 114 forks source link

Frozen image, not changing while moving slide bar or clicking next #33

Closed arnaud-nt2i closed 4 years ago

arnaud-nt2i commented 4 years ago

Hi!

First, thank you @developer0hye for this repo, this sounds like a really handy alternative of the famous Yolo annotation tools.

I'm trying to use Yolo-Label With some random images and the whole interface seems to freeze with my images.

I have no problem with the same images on Yolo-Mark.

All files are .jpg but some are .jfif rename to .jpg, could this be the pb?

In the zip file below is two images on which the pb occurs.

Is there a quick fix I can set up?

By the way, is there a method to create the "train.txt" file with all the images' names (one per line)?

img2.zip

arnaud-nt2i commented 4 years ago

I have found a workaround by rewriting every image in jpg file using a python script:

python code

import cv2 import os

img_path = 'C:\...' #Complete with Path to Images file all_file = os.listdir(img_path) os.chdir(img_path) # very important for filename in all_file: #insert tab before the two following lines img=cv2.imread(filename) cv2.imwrite(filename,img,[int(cv2.IMWRITE_JPEG_QUALITY), 100])

developer0hye commented 4 years ago

@arnaud-nt2i Did you solve this problem?