You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
Does not want to record labels. I have tried with several versions, nothing works.
How to fix ?
I only have two very large images. High-precision satellite photo (15kX15k). I have to get more than 1000 labels per photo
Img: C:\Users\wkn\Documents\IA\ortoIA\images\png5ca3a3d5e5635f000690af6b.png -> Its txt: C:\Users\wkn\Documents\IA\ortoIA\labels\png5ca3a3d5e5635f000690af6b.txt
Traceback (most recent call last):
File "<string>", line 1291, in saveFile
File "<string>", line 1320, in _saveFile
File "<string>", line 808, in saveLabels
File "Z:\home\darrenl\tmp\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\libs.labelFile", line 83, in saveYoloFormat
File "Z:\home\darrenl\tmp\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\libs.yolo_io", line 64, in save
File "Z:\home\darrenl\tmp\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\libs.yolo_io", line 36, in BndBox2YoloLine
ZeroDivisionError: float division by zero
Thx !
Windows 10 64
3.7:
The text was updated successfully, but these errors were encountered:
i faced the same problem, this happens due to transparency in the some images, i dnt know what kind of transparency is this,......but it can be solved by opening the image with opencv and saving it again, it worked for me.
i wrote this python file :--
import cv2
import os
def loadImages(path = "."):
return [os.path.join(path, f) for f in os.listdir(path) if f.endswith('.jpg')]
filenames = loadImages()
images = []
for file in filenames:
images.append(cv2.imread(file, cv2.IMREAD_UNCHANGED))
num = 0
for image in images:
cv2.imwrite(str(num)+".jpg",image)
num += 1
it will open every file in the directory and save it again!!
Hi,
Does not want to record labels. I have tried with several versions, nothing works.
How to fix ?
I only have two very large images. High-precision satellite photo (15kX15k). I have to get more than 1000 labels per photo
Thx !
The text was updated successfully, but these errors were encountered: