Commit Graph
4 Commits
Author SHA1 Message Date
Denis 4bf5c4528c Fix deletion of image caused selection of the first image (#742)
Also removed the call to self.import_dir_images method that reloaded all
of the images in directory.
2021-04-28 07:22:14 -07:00
Denis 6b5c3c634b Implement image counter. (#734)
* Introduced two new attributes of MainWindow:
  cur_img_idx - Index of current image in m_img_list.
  img_count   - Length of m_img_list.

* Implement counter_str method to get string representation of counter.

* Appended counter to window title.

* Based image switching logic on counter instead of local variables.

* Removed useless condition.
  current_index = self.m_img_list.index(ustr(item.text()))
  if current_index < len(self.m_img_list):
  list.index will raise ValueError if item doesn't exist.
2021-04-26 22:18:56 -07:00
Denis 62585531ca Fix incorrect path handling (#731)
* Fix incorrect save dir path handling for ML format.

Save dir path was split by incorrect os.dependent separator '/'
which was the cause of labels being saved to parent folder.

* Implement path normalization for command arguments.

Renamed 'predefined_classes_file' parameter to 'class_file'.
2021-04-07 22:01:55 -07:00
Denis 0573a39ec3 Fix rounding issue that caused 1px box shift for YOLO format. (#730) 2021-04-06 16:38:48 -07:00