developer0hye / Yolo_Label

GUI for marking bounded boxes of objects in images for training neural network YOLO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

arnaud-nt2i opened this issue · comments

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

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])

@arnaud-nt2i
Did you solve this problem?