BBox-Label-Tool icon indicating copy to clipboard operation
BBox-Label-Tool copied to clipboard

Problem in LoadDir

Open alfamousts opened this issue 7 years ago • 3 comments

when i try to press the load button, in command line shows error like this

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1541, in __call__
    return self.func(*args)
  File "main.py", line 126, in loadDir
    self.category = int(s)
ValueError: invalid literal for int() with base 10: ''

anyone can help me solve this problem ?

alfamousts avatar Feb 13 '18 13:02 alfamousts

In BBox-Label-Tool/Images there should be "001" folder. Create a new folder with name "002" and put all your images into this folder (for Image Dir box near load button give 2).

Your images should have extension of JPG (for that in Images folders terminal give mogrify -format JPG 002/*.jpg)

RameshKamath avatar Mar 06 '18 09:03 RameshKamath

This does not help what is the answer??

maxiujin avatar Aug 08 '18 04:08 maxiujin

The tool is expecting only an integer as @RameshKamath has mentioned. If any character other than number is entered in Image Dir in the tool, then the exception occurs as below:

Exception in Tkinter callback Traceback (most recent call last): File "C:\Python27\lib\lib-tk\Tkinter.py", line 1541, in call return self.func(*args) File "main.py", line 126, in loadDir self.category = int(s) ValueError: invalid literal for int() with base 10: ''

hemanths933 avatar Oct 13 '18 07:10 hemanths933