HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.51k stars 6.27k forks source link

labelImg 1.5.2 on windows crashed #221

Closed pongrut closed 6 years ago

pongrut commented 6 years ago

I have used labelImg 1.5.2 on windows for many days. Today I was opening an image then I try to change its .xml with notepad to see the result. After I closed program then I cannot open program again it keep throw this error even I have tried to reboot my computer many times.

Traceback (most recent call last): File "", line 1344, in File "", line 1340, in main File "", line 1333, in get_main_app File "", line 93, in init File "Z:\home\darrenl\tmp\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\libs.settings", line 33, in load File "Z:\home\darrenl\tmp\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\pickle", line 1378, in load File "Z:\home\darrenl\tmp\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\pickle", line 858, in load File "Z:\home\darrenl\tmp\labelImg\build-tools\build\labelImg\out00-PYZ.pyz\pickle", line 880, in load_eof EOFError

Any suggestion please?

nikitaverbis commented 6 years ago

Add any example of your xml-file and image if possible.

pongrut commented 6 years ago

Here it is. However, I can open the program on another computer but the main one I cannot open it anymore.

<?xml version="1.0"?>

-<annotation>

<folder>object-detection-macaroni_images</folder>

<filename>0ShAyPFRqBeO60QkYN7w_Mac Cheese 2.jpg</filename>

<path>F:/object-detection-macaroni_images/0ShAyPFRqBeO60QkYN7w_Mac Cheese 2.jpg</path>

-<source>

<database>Unknown</database>

</source>

-<size>

<width>620</width>

<height>414</height>

<depth>3</depth>

</size>

<segmented>0</segmented>

-<object>

<name>macncheese</name>

<pose>Unspecified</pose>

<truncated>0</truncated>

<difficult>0</difficult>

-<bndbox>

<xmin>0</xmin>

<ymin>9</ymin>

<xmax>565</xmax>

<ymax>313</ymax>

</bndbox>

</object>

</annotation>
a9595776 commented 6 years ago

I have this error. I don't know how to solve it....

PapaMadeleine2022 commented 6 years ago

I have the same error

hiroalchem commented 6 years ago

I have the same error too.....

PapaMadeleine2022 commented 6 years ago

@tzutalin can you give some advises? looking forward to your reply

Mingta commented 6 years ago

I have the same error in Windows version 1.6.0. By the way, the old version 1.5.0 works just fine.

seovchinnikov commented 6 years ago

+1

zuifengwuchou commented 6 years ago

Just delete the file .labelImgSettings.pkl which is locate at C:\\Users\your_account\. Then reopen LabelImg.exe will be fine.

pongrut commented 6 years ago

thank @zuifengwuchou the solution works for me. "Just delete the file .labelImgSettings.pkl which is locate at C:\Users\your_account. Then reopen LabelImg.exe will be fine."

PapaMadeleine2022 commented 6 years ago

@zuifengwuchou thanks a million

FMsunyh commented 6 years ago

thank @zuifengwuchou the solution works for me. thanks, thanks, thanks, thanks, thanks,

Akashpanchal95 commented 6 years ago

thanks, @zuifengwuchou its work for me.

senisna commented 5 years ago

this my sounds stupid but it worked for me open the kabelImg.exe directly from winrar just don't extract it and it will open smothly

ankni1 commented 5 years ago

my version of labelImg does not run. it crashes as soon as i try to import an image from a directory. there is no file called .labelImgSettings.pkl. can someone help? the installations are as per @tzutalin 's instructions.

zhaoxuyan commented 4 years ago

For Windows

Go to Users\xxx\ delete .labelImgSettings.pkl,then pyrcc5 -o libs/resources.py resources.qrc, python labelImg.py

For Mac or Linux

Go to home(~) folder, rm .labelImgSettings.pkl, then pyrcc5 -o libs/resources.py resources.qrc, python labelImg.py

cheng-zi-ya commented 4 years ago

But for windows, what can I do to solve the problem if I cannot find the .labelImgSettings.pkl?

Akashpanchal95 commented 4 years ago

But for windows, what can I do to solve the problem if I cannot find the .labelImgSettings.pkl?

You can find under the C:\Users\your_account\.labelImgSettings.pkl, Delete this file and open again the tool.

cheng-zi-ya commented 4 years ago

Thanks! I search all my files still cannot find it, but I find this is helpful: https://medium.com/@sanghuynh_73086/how-to-install-labelimg-in-windows-with-anaconda-c659b27f0f. Someone who has the problem like me maybe can try this.

mrwicky381 commented 3 years ago

thankyou @zuifengwuchou , its work

SB2020-eye commented 3 years ago

Just delete the file .labelImgSettings.pkl which is locate at C:\\Users\your_account\. Then reopen LabelImg.exe will be fine.

Such a simple solution. Thanks! I wish I were smart enough to correct it here with a pull request on github.

Anuradha-Uggi commented 3 years ago

I have done labelling for 280 images around,all corresponding .txt files were generated,but after sometime I have opened classes.txt where mostly of the classes were missing and when I opened the directory back in labelImg tool,when I press next image few images it shows and immediately gets crashed saying python has stopped working.plz kindly help me out of it.lots of efforts I kept in preparing it.i use it in windows 10.

3b0000d commented 3 years ago

@zuifengwuchou Thank you very much.

DilinaHirantha commented 3 years ago

thank @zuifengwuchou the solution works for me. "Just delete the file .labelImgSettings.pkl which is locate at C:\Users\your_account. Then reopen LabelImg.exe will be fine."

thanks bro it worked

mohsin-riad commented 3 years ago

Just delete the file .labelImgSettings.pkl which is locate at C:\\Users\your_account\. Then reopen LabelImg.exe will be fine.

Thanks A Lot 💯

Mohammad-Amin-Asadi commented 2 years ago

Worked for me tooooo! @zuifengwuchou

Jojodike commented 1 year ago

I have done labelling for 280 images around,all corresponding .txt files were generated,but after sometime I have opened classes.txt where mostly of the classes were missing and when I opened the directory back in labelImg tool,when I press next image few images it shows and immediately gets crashed saying python has stopped working.plz kindly help me out of it.lots of efforts I kept in preparing it.i use it in windows 10.

I'm having this same problem too. Please were you able to find a solution for it?

Jojodike commented 1 year ago

my version of labelImg does not run. it crashes as soon as i try to import an image from a directory. there is no file called .labelImgSettings.pkl. can someone help? the installations are as per @tzutalin 's instructions.

I'm also having this issue too. Please were you able to find a solution for it?

ITSAIDI commented 1 year ago

C:\Users\hp>cd C:\Users\hp\AI\DL formation\Projects\Object recognition.CV\Sign launguage detection\RealTimeObjectDetection\Tensorflow\labelImg

C:\Users\hp\AI\DL formation\Projects\Object recognition.CV\Sign launguage detection\RealTimeObjectDetection\Tensorflow\labelImg>python labelImg.py Traceback (most recent call last): File "C:\Users\hp\AI\DL formation\Projects\Object recognition.CV\Sign launguage detection\RealTimeObjectDetection\Tensorflow\labelImg\labelImg.py", line 1359, in open_dir_dialog self.import_dir_images(target_dir_path) File "C:\Users\hp\AI\DL formation\Projects\Object recognition.CV\Sign launguage detection\RealTimeObjectDetection\Tensorflow\labelImg\labelImg.py", line 1374, in import_dir_images self.open_next_image() File "C:\Users\hp\AI\DL formation\Projects\Object recognition.CV\Sign launguage detection\RealTimeObjectDetection\Tensorflow\labelImg\labelImg.py", line 1429, in open_next_image self.change_save_dir_dialog() File "C:\Users\hp\AI\DL formation\Projects\Object recognition.CV\Sign launguage detection\RealTimeObjectDetection\Tensorflow\labelImg\labelImg.py", line 1309, in change_save_dir_dialog self.show_bounding_box_from_annotation_file(self.file_path) File "C:\Users\hp\AI\DL formation\Projects\Object recognition.CV\Sign launguage detection\RealTimeObjectDetection\Tensorflow\labelImg\labelImg.py", line 1182, in show_bounding_box_from_annotation_file basename = os.path.basename(str(os.path.splitext(file_path))[0]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 232, in splitext TypeError: expected str, bytes or os.PathLike object, not NoneType

I got this error ,any solution please ???