-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export on ubuntu does not export - unable to open image #35
Comments
What format are you exporting? |
I was trying COCO (JSON) however:
So in fact, I am unable to export any format. Only COCO reports problems in console. In fact others report Thank you! |
You make your own names file. It's a list of classes that you want to export - just newline delimited. It comes from YOLO, but it's a useful way of (a) forcing a specific class order, if that matters and (b) allowing you to filter which classes you export. But I'll take a look at the export - seems like something is up! Usually if the OK button is disabled, something is missing, but perhaps it's a bug. If you have the code compiled, you could add some debug statements to see what the program is trying to create. |
I tried to create names file corresponding with my 2 class names. Then I tried to export using Darknet format and I get following errors:
BTW where is the debug flag, I can change that and recompile |
Oh fun! Well the names file should be like this (e..g for COCO classes): https://github.com/pjreddie/darknet/blob/master/data/coco.names I would suggest doing it in Qt Creator - then you can breakpoint easily (and add a debug build). Or you can use qDebug(), that should work in release mode. |
OK, what I found it's very likely related to QDir() return QDir(db.databaseName()); It returns full path which includes also the database file. I tried following:
QDir getDbFolder(){
auto db = getDatabase();
auto rs = QFileInfo(db.databaseName());
return rs.absoluteDir();
// return QDir(db.databaseName());
} After this the export worked and images were placed into export folder. Unfortunately this is not a fix since it breaks the UI. hopefully this will help you to identify the core issue. I also found this article with similar issue https://stackoverflow.com/questions/13783876/qdir-absolutepath-still-returning-the-filename |
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
The text was updated successfully, but these errors were encountered: