jveitchmichaelis / deeplabel Goto Github PK
View Code? Open in Web Editor NEWA cross-platform desktop image annotation tool for machine learning
A cross-platform desktop image annotation tool for machine learning
Minimally should be able to import arbitrary projects in the following formats:
If the database file is moved, the internal (relative) image paths will be incorrect. We should have the ability to update the location of the database relative to the images.
Possibly a method to do this would be to ask the user to locate a single asset (e.g. an image) and use that to infer what changes should be made to the rest of the paths in the database.
Heya,
LOVE this, good work - quick question can we use this from the command line with the following use case:
We have items such as tin cans on a turntable when our setup has finished taking a video of it we'd like to fire it at our backend services, now we'd like to automatically label it via a bash script. So we'd probably confirm the first frame label and then look to track it across the rest since it's on a turntable it won't move much.
OR
We'd use automatic object detection via our own model in the right format.
Thanks
Marc
I was trying to get the exe file running under Windows 10, but the above error occured. Am I missing anything ?
Hi
when i try building i get qmake: could not find a Qt installation of ''
what does it mean?
how can i fix it?
10x for the great tool.
Hi @jveitchmichaelis thanks for your great work!
I gave the experimental COCO export functionality a try and found that the COCO Python API is expecting high-level labels to be defined as images
and annotations
. Otherwise image ids are not loaded by the API.
So I suggest changing
deeplabel/src/cocoexporter.cpp
Lines 182 to 183 in 2506147
to
label_file["images"] = image_array;
label_file["annotations"] = annotations_array;
It is very frustrating to have to go back manually after removing image.
Is there any way to more/resize annotation?
Currently the only way I found working is to remove annotation and add it again with corrected position and size.
After running detector I find that many annotations are slightly inaccurate, and having easy way of correcting them would be a life saver.
After I configure object detector and run it on any image it doesn't show any new annotations.
I tried "Set threshold" to 0,01 but it didn't change anything. Setting it to CPU also doesn't help.
My configuration:
After pressing the magic wand button (no new annotation added):
Proof that my model is able to detect the object:
Is there anything I can do to debug this more? Please help
the square brackets in cocoimporter.cpp are breaking the build on windows and linux.
On linux I was able to checkout the previous commit and get everything working. On windows I am still having issues with OpenCV. (I think that has more to do with me vs windows than anything else.)
I also hit issues with QtAwesome during both builds, and had to download it from a different repository (https://github.com/gamecreature/QtAwesome). Unless I'm doing something wrong there too, you might want to list it as a dependency in your installation instructions.
P.S. excellent tool by the way!
I run into a weird problem that. If my images are lets say on my X SSD and DeepLabel on my Y SSD it will throw an error that images couldn't be loaded. If its on the same Hard drive it works just fine.
I tried to load tensorflow model and the program crashed. I used Yolov5 and then converted model into pb format
Checking config file
Checking config file
Added detection class: 0 label-one
Added detection class: 1 label-two
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 18446744073709551615) >= this->size() (which is 0)
fish: “release/deeplabel” terminated by signal SIGABRT (Abort)
Sir,
Thank you for your previous answer. I can start to use the deeplabel to speed up my project. But the new question is appear as captioned.
I believe adding a function for user to select bounding box color sounds good. 2 bounding box colors can solve it - black or white. :)
can deeplabel support Yolov5 h5 model file or onnx model file? thanks
I am currently labeling few images to retrain YOLO. I want to make use of the tracking feature. Here are the steps that I followed
Observed Behaviour
App closes Due to segmentation faults
Console output: Segmentation fault (core dumped)
There are no other debug messages that are printed
I would like to export 1200 nos darknet labels but it can only export up to nos 999. <- it solved after I clicked random export.
After that I want to delete pictures I did not labelled but no button for this function.
Hi, I am trying to import coco128 dataset with the annotations.
When I tried importing as darknet: I created a images.txt file containing all the paths to the images relative to the .lbldb. and placed the labels.txt files for each images along the images. But now I got a lot of File not found on disk ""
.
I am using v 0.15
Thanks
blackberry:~/dev/deeplabel/release$ ./DeepLabel
Database structure looks good
QSqlDatabasePrivate::removeDatabase: connection '/home/jlong/dev/fuzzy/bunny' is still in use, all queries will cease to work.
QSqlDatabasePrivate::addDatabase: duplicate connection name '/home/jlong/dev/fuzzy/bunny', old connection removed.
Database structure looks good
Segmentation fault (core dumped)
Hello @jveitchmichaelis.
So I was trying to run yolov4 pretrained model on some of my images. I ran into an issue.
So I made a new project as instructed. Then upload the image folder. While configuring the object detector with config,weight and names file, the OK (on which we are supposed to click) vanishes. Since I am not able to configure the object detector, I am not able to run inference on my images.
Side note: I had earlier ran a yolov4-custom model on it with successful running. Whenever I try to configure the detector, the addresses of the weight,config and names of that project opens up. Changing the addresses makes the OK dissapear.
I have no clue as to what is happening
Sir,
System: darknet, yolov4
Concrening with the darknet labels export, I set the Names.file as obj.names and export labels. I used the exported labels files for the yolov4 training, after loaded the model, it show error as below.
[yolo] params: iou loss: ciou (4), iou_norm: 0.07, cls_norm: 1.00, scale_x_y: 1.05
nms_kind: greedynms (1), beta = 0.600000
Total BFLOPS 59.636
avg_outputs = 491093
Allocate additional workspace_size = 52.43 MB
Loading weights from /home/brian/yolo/layout/yolov4.conv.137...
seen 64, trained: 0 K-images (0 Kilo-batches_64)
Done! Loaded 137 layers from weights-file
Learning Rate: 0.001, Momentum: 0.949, Decay: 0.0005
If error occurs - run training with flag: -dont_show
Resizing, random_coef = 1.40
608 x 608
Create 6 permanent cpu-threads
Wrong annotation: x = 0, y = 0, < 0 or > 1, file: /home/brian/yolo/layout/output/train/1.txt
.
.
.
Wrong annotation: x = 0, y = 0, < 0 or > 1, file: /home/brian/yolo/layout/output/train/2.txt
Wrong annotation: x = 0, y = 0, < 0 or > 1, file: /home/brian/yolo/layout/output/train/3.txt
Wrong annotation: x = 0, y = 0, < 0 or > 1, file: /home/brian/yolo/layout/output/train/4.txt
Wrong annotation: x = 0, y = 0, < 0 or > 1, file: /home/brian/yolo/layout/output/train/5.txt
Wrong annotation: x = 0, y = 0, < 0 or > 1, file: /home/brian/yolo/layout/output/train/6.txt
So I stopped the training. why the annotation are wrong?
System: Ubuntus 18.04, python3.8
After make files I cannot find a file to start it. May you please tell me how to work?
I have series of images which I labeled using the deep label tool. I exported the labels and stored it in a directory. I observe two issues:
Please let me know if there is a specific procedure to follow to export labels. I feel that tool is able to record the bounding boxes but not output the coordinates into the file.
Deeplabel reports errors when exporting files on ubuntu 20.04
My source folder with images: /home/vlad/Pictures/Cleaned/zluty/
DB file at: /home/vlad/Pictures/Cleaned/zluty/deeplabel-db.lbldb
Failed top open image "/home/vlad/Pictures/Cleaned/zluty/deeplabel-db.lbldb/../IMG_20220223_114543.jpg"
Failed top open image "/home/vlad/Pictures/Cleaned/zluty/deeplabel-db.lbldb/../IMG_20220223_114949.jpg"
Failed top open image "/home/vlad/Pictures/Cleaned/zluty/deeplabel-db.lbldb/../IMG_20220223_112833.jpg"
Failed top open image "/home/vlad/Pictures/Cleaned/zluty/deeplabel-db.lbldb/../IMG_20220223_113744.jpg"
Failed top open image "/home/vlad/Pictures/Cleaned/zluty/deeplabel-db.lbldb/../IMG_20220223_112706.jpg"
Failed top open image "/home/vlad/Pictures/Cleaned/zluty/deeplabel-db.lbldb/../IMG_20220223_112823.jpg"
make -j4
g++ -c -pipe -O2 -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/home/user/deeplabel"' -I. -isystem /usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -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/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtTest -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/main.o src/main.cpp
g++ -c -pipe -O2 -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/home/user/deeplabel"' -I. -isystem /usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -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/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtTest -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/mainwindow.o src/mainwindow.cpp
g++ -c -pipe -O2 -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/home/user/deeplabel"' -I. -isystem /usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -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/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtTest -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/gcpexporter.o src/gcpexporter.cpp
g++ -c -pipe -O2 -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/home/user/deeplabel"' -I. -isystem /usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -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/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtTest -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/imagedisplay.o src/imagedisplay.cpp
In file included from src/imagedisplay.cpp:1:
src/imagedisplay.h:49:26: error: ‘COLORMAP_MAGMA’ is not a member of ‘cv’; did you mean ‘COLORMAP_PARULA’?
49 | int colour_map = cv::COLORMAP_MAGMA;
| ^~~~~~~~~~~~~~
| COLORMAP_PARULA
src/imagedisplay.cpp:5:22: error: ‘COLORMAP_CIVIDIS’ is not a member of ‘cv’; did you mean ‘COLORMAP_PINK’?
5 | { "Cividis", cv::COLORMAP_CIVIDIS },
| ^~~~~~~~~~~~~~~~
| COLORMAP_PINK
src/imagedisplay.cpp:6:22: error: ‘COLORMAP_INFERNO’ is not a member of ‘cv’; did you mean ‘COLORMAP_WINTER’?
6 | { "Inferno", cv::COLORMAP_INFERNO },
| ^~~~~~~~~~~~~~~~
| COLORMAP_WINTER
src/imagedisplay.cpp:7:20: error: ‘COLORMAP_MAGMA’ is not a member of ‘cv’; did you mean ‘COLORMAP_PARULA’?
7 | { "Magma", cv::COLORMAP_MAGMA },
| ^~~~~~~~~~~~~~
| COLORMAP_PARULA
src/imagedisplay.cpp:10:21: error: ‘COLORMAP_PLASMA’ is not a member of ‘cv’; did you mean ‘COLORMAP_PARULA’?
10 | { "Plasma", cv::COLORMAP_PLASMA },
| ^~~~~~~~~~~~~~~
| COLORMAP_PARULA
src/imagedisplay.cpp:14:22: error: ‘COLORMAP_VIRIDIS’ is not a member of ‘cv’; did you mean ‘COLORMAP_SPRING’?
14 | { "Viridis", cv::COLORMAP_VIRIDIS }
| ^~~~~~~~~~~~~~~~
| COLORMAP_SPRING
src/imagedisplay.cpp:15:1: error: no matching function for call to ‘std::unordered_map<std::__cxx11::basic_string, int>::unordered_map()’
Hi. Deeplabel said it did not support yolov4.weight to detect.
I tried to compile deeplabel and it fails with missing include file. Is there any particular protobuf dev version needed?
:/tmp/deeplabel$ sudo apt install git build-essential qt5-default libprotobuf-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libprotobuf-dev is already the newest version (3.6.1.3-2ubuntu5).
build-essential is already the newest version (12.8ubuntu1.1).
git is already the newest version (1:2.25.1-1ubuntu3.2).
qt5-default is already the newest version (5.12.8+dfsg-0ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
:/tmp/deeplabel$ make -j4
g++ -c -pipe -O2 -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/tmp/deeplabel"' -I. -isystem /usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -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/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtTest -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/main.o src/main.cpp
g++ -c -pipe -O2 -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/tmp/deeplabel"' -I. -isystem /usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -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/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtTest -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/mainwindow.o src/mainwindow.cpp
g++ -c -pipe -O2 -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/tmp/deeplabel"' -I. -isystem /usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -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/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtTest -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/exportdialog.o src/exportdialog.cpp
g++ -c -pipe -O2 -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/tmp/deeplabel"' -I. -isystem /usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -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/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtTest -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/multitracker.o src/multitracker.cpp
In file included from src/tfrecordexporter.h:6,
from src/exporter.h:9,
from src/mainwindow.h:19,
from src/mainwindow.cpp:1:
src/proto/example.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from src/tfrecordexporter.h:6,
from src/exporter.h:9,
from src/mainwindow.h:19,
from src/main.cpp:1:
src/proto/example.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:844: .obj/mainwindow.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:807: .obj/main.o] Error 1
As per this issue, it would be nice if we could support Yolov4, but currently we rely on opencv for backend processing. We could, alternatively, ask the user to provide a darknet binary/dll and use that.
This would also open the door for simple integration of training into the deeplabel GUI.
I looked at the releases and only windows and mac versions are still there. The linux builds are all "expired" (no longer available for download). The build process under Ubuntu is a little convoluted, so a release would be handy. Any plans for keeping those releases or cleaning up the build?
System: Ubuntu 18.04, qt5, sqlite3
Sir,
Thank you for your answer yesterday. May you please help to solve/answer the aformentioned question? I cannot find the database save file on the qt5 load-file window.
Please find the below picture for your reference. (qt5 window show nothing but my ubuntu window show the file I saved.)
photo link
Thank you.
Heya I'm trying to compile for MacOS I'm getting...
marcfielding@MacBook-Pro deeplabel % make -j4
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.12 -O2 -std=gnu++1y -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.13 -Wall -Wextra -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/Users/marcfielding/deeplabel"' -I. -I/usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -I/usr/local/Cellar/qt/5.15.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtTest.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtConcurrent.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtCore.framework/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/usr/local/Cellar/qt/5.15.0/mkspecs/macx-clang -F/usr/local/Cellar/qt/5.15.0/lib -o .obj/darknetexporter.o src/darknetexporter.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.12 -O2 -std=gnu++1y -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.13 -Wall -Wextra -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/Users/marcfielding/deeplabel"' -I. -I/usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -I/usr/local/Cellar/qt/5.15.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtTest.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtConcurrent.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtCore.framework/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/usr/local/Cellar/qt/5.15.0/mkspecs/macx-clang -F/usr/local/Cellar/qt/5.15.0/lib -o .obj/baseimporter.o src/baseimporter.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.12 -O2 -std=gnu++1y -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.13 -Wall -Wextra -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/Users/marcfielding/deeplabel"' -I. -I/usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -I/usr/local/Cellar/qt/5.15.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtTest.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtConcurrent.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtCore.framework/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/usr/local/Cellar/qt/5.15.0/mkspecs/macx-clang -F/usr/local/Cellar/qt/5.15.0/lib -o .obj/cocoexporter.o src/cocoexporter.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.12 -O2 -std=gnu++1y -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.13 -Wall -Wextra -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/Users/marcfielding/deeplabel"' -I. -I/usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -I/usr/local/Cellar/qt/5.15.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtTest.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtConcurrent.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtCore.framework/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/usr/local/Cellar/qt/5.15.0/mkspecs/macx-clang -F/usr/local/Cellar/qt/5.15.0/lib -o .obj/darknetimporter.o src/darknetimporter.cpp
src/darknetexporter.cpp:51:29: error: no member named 'clamp' in namespace 'std'
double x = std::clamp(static_cast<double>(label.rect.center().x())/image.cols, 0, 0.999);
~~~~~^
src/darknetexporter.cpp:52:29: error: no member named 'clamp' in namespace 'std'
double y = std::clamp(static_cast<double>(label.rect.center().y())/image.rows, 0, 0.999);
~~~~~^
src/darknetexporter.cpp:53:33: error: no member named 'clamp' in namespace 'std'
double width = std::clamp(static_cast<double>(label.rect.width())/image.cols, 0, 0.999);
~~~~~^
src/darknetexporter.cpp:54:34: error: no member named 'clamp' in namespace 'std'
double height = std::clamp(static_cast<double>(label.rect.height())/image.rows, 0, 0.999);
~~~~~^
4 errors generated.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.12 -O2 -std=gnu++1y -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.13 -Wall -Wextra -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/Users/marcfielding/deeplabel"' -I. -I/usr/local/include/opencv4 -Isrc -IQtAwesome/QtAwesome -I/usr/local/Cellar/qt/5.15.0/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtTest.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtConcurrent.framework/Headers -I/usr/local/Cellar/qt/5.15.0/lib/QtCore.framework/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/usr/local/Cellar/qt/5.15.0/mkspecs/macx-clang -F/usr/local/Cellar/qt/5.15.0/lib -o .obj/gcpexporter.o src/gcpexporter.cpp
make: *** [.obj/darknetexporter.o] Error 1
make: *** Waiting for unfinished jobs....
There's only windows one available in releases.
Hi there
After the build as soo as I tried running it from the terminal with ./DeepLabel.pro, I would get an error
"/DeepLabel.pro: line 7: QT: command not found
./DeepLabel.pro: line 9: syntax error near unexpected token QT_MAJOR_VERSION,' ./DeepLabel.pro: line 9:
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets'
"
Also I have already installed QT and is working on Ubuntu20.04. Any help will be appreciated
This affects the COCO and Pascal VOC exporters. Currently the output class ID is dependent on the order in which they were created in deeplabel. It may be preferable to, in some cases, force this to something else, for example provide a pbtxt file like https://github.com/tensorflow/models/blob/master/research/object_detection/data/mscoco_label_map.pbtxt
The darknet exporter does not have this problem as it uses a .names file to control this. GCP is also not affected as it uses class names directly.
Should probably allow minimally:
and infer based on extension.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.