developer0hye / Yolo_Label

GUI for marking bounded boxes of objects in images for training neural network YOLO
MIT License
509 stars 114 forks source link

We need a linux version of this! #19

Closed xrv0 closed 1 year ago

xrv0 commented 4 years ago

Yolo was originally designed for linux so a linux binary would be appreciated

developer0hye commented 4 years ago

I don’t know making a linux binary version yet, I have the plan to do that!

DenpaBorisu commented 4 years ago

it runs on lutris 4.20

sambo55 commented 4 years ago

Runs on ubuntu if you git clone the repo and build with qt.

rabdulatipoff commented 4 years ago

install qmake and qtbase5-dev on debian/ubuntu, run make -j## in the root directory, then chmox +x YoloLabel and execute YoloLabel; there you are. Here's my own binary (amd64), compiled on Ubuntu 20.04

y9luiz commented 4 years ago

Just compile it using qt creator, maybe the author could implement a cmakelists to compile it

6630507 commented 2 years ago

Can confirm the Linux build process (Ubuntu 20.04) was pretty quick and painless.

Needed qtbase5-dev, got qmake from qt5-qmake, and grabbed qt-sdk. Simply ran qmake and then make in the root directory. Need to launch the compiled binary from the terminal (i.e., $ ./YoloLabel).

ingjae commented 1 year ago

I use those commands for ubuntu 20.04

sudo apt install qt5-default 

git clone https://github.com/developer0hye/Yolo_Label
cd Yolo_Label

git checkout 160a8cc3e82deebe6f5a02d49ada667d267718cc  # current master branch has error (can't make)

qmake
make
./Yolo_label
developer0hye commented 1 year ago

@ingjae Thanks!

Can you upload an error message?

ingjae commented 1 year ago

at master branch

make

this is error message

/usr/lib/qt5/bin/uic mainwindow.ui -o ui_mainwindow.h
g++ -c -pipe -O2 -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o main.o main.cpp
g++ -c -pipe -O2 -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o mainwindow.o mainwindow.cpp
mainwindow.cpp: In member function ‘void MainWindow::on_tableWidget_label_cellClicked(int, int)’:
mainwindow.cpp:431:64: warning: unused parameter ‘column’ [-Wunused-parameter]
  431 | void MainWindow::on_tableWidget_label_cellClicked(int row, int column)
      |                                                            ~~~~^~~~~~
g++ -c -pipe -O2 -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o label_img.o label_img.cpp
label_img.cpp: In member function ‘virtual void label_img::mouseReleaseEvent(QMouseEvent*)’:
label_img.cpp:74:48: warning: unused parameter ‘ev’ [-Wunused-parameter]
   74 | void label_img::mouseReleaseEvent(QMouseEvent *ev)
      |                                   ~~~~~~~~~~~~~^~
label_img.cpp: In member function ‘void label_img::drawObjectLabels(QPainter&, int, int, int, int)’:
label_img.cpp:313:31: error: ‘QColorConstants’ has not been declared
  313 |             blackPen.setColor(QColorConstants::Black);
      |                               ^~~~~~~~~~~~~~~
label_img.cpp:315:31: error: ‘QColorConstants’ has not been declared
  315 |             blackPen.setColor(QColorConstants::White);
      |                               ^~~~~~~~~~~~~~~
make: *** [Makefile:442: label_img.o] Error 1
developer0hye commented 1 year ago

@ingjae Thanks!

developer0hye commented 1 year ago

@ingjae I found a solution. All we need is qt6...

developer0hye commented 1 year ago

@ingjae @xrv0 @DenpaBorisu @sambo55 @rabdulatipoff @y9luiz @6630507

I released Ubuntu 22.04 version of it.

https://github.com/developer0hye/Yolo_Label#for-ubuntu-2204

However, I just tried it on Ubuntu 22.04 of wsl2, so I didn't check it on native Ubuntu 22.04.