You need to use annotation tools to do yolo or SDD. ↓ I want to install and use an annotation tool called labelImg on windows10. ↓ labelImg seems to be a tool that can be started by typing python labelImg.py on the command line, so I tried it as described on the website. ↓ No module named'libs.resources' error (← now here)
windows10 anaconda
The site I referred to at the beginning is here https://haitenaipants.hatenablog.com/entry/2018/06/09/235950 If you search for "label Img installation Windows 10" etc., this site will appear at the top, so I think other people will get the same error. (I took a long time to resolve it.) When I ran it exactly as it was written on this site, I got the following error with the following command:
python labelImg.py
[Details of the error]
No module named 'libs.resources'
That is, a warning that there is no module called libs.resources.
If you write from the result, the command you are executing before is wrong,
pyrcc5 -o resources.py resources.qrc
not,
pyrcc5 -o libs/resources.py resources.qrc
Is correct. In other words, resource.py must be created in a folder called libs from the resource.qrc file in the folder downloaded by git clone. (So, make sure that resource.py is created in the libs folder before and after execution)
After this, when I run python labelImg.py, I get the following error this time:
ModuleNotFoundError: No module named 'lxml'
This error can be resolved by installing lxml with pip as follows.
pip install lxml
Execute the following command again
python labelImg.py
Successful activation of Label Img. I did it.
If you want to do it again, install labelImg as follows. (For Windows 10) -Start git bash and cd to the folder where you want to put the IabelImg folder. ↓ -Download labelImg with git clone.
git clone https://github.com/tzutalin/labelImg.git
↓ Start anaconda, start Terminal, and execute the following contents.
#Since the GUI of labelImg uses PyQt5, install PyQt5.
pip install PyQt5
#Confirm that it has been installed
pip list
#cd to the labelImg directory
cd xxxx/xxxxx/labelImg
#resource in the libs folder.Create py
pyrcc5 -o libs/resources.py resources.qrc
#Start labelImg, but check that there is no lxml so an error occurs
python labelImg.py
~(abridgement)~
ModuleNotFoundError: No module named 'lxml'
#install lxml
pip install lxml
#Start labelImg again
python labelImg.py
Recommended Posts