Git Product home page Git Product logo

labelimgplus's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @lzx1413
  • ๐Ÿ‘€ Iโ€™m interested in CV/ML/SLAM
  • ๐ŸŒฑ Iโ€™m currently learning Rust

labelimgplus's People

Contributors

lzx1413 avatar runhang avatar se7oluti0n avatar tzutalin avatar xunchangqing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

labelimgplus's Issues

Change code to select multipe boxes

Say i want to delete multiple boxes at once, without clicking each box and deleting separately.
What changes would i make to the source code to either a) select multiple boxes with the mouse (overlapping them with a mouse box) or b) select multiple boxes by clicking each, and then pressing delete once.

About the labelImg.py

The '/' should be added to the line 1030, 1035, 1048 of labelImg.py after '+' to seperate the folder when storing mask and xml file.

IOError: [Errno 2] No such file or directory:

hello, I'm afraid that line 1035(https://github.com/lzx1413/labelImgPlus/blob/master/labelImg.py#L1035) and line 1047(https://github.com/lzx1413/labelImgPlus/blob/master/labelImg.py#L1047) cause the issue of IOError mentioned on the title.

To solve them, line 1035 should be replaced by result_path = os.path.join(self.defaultSaveDir,os.path.splitext(imgFileName)[0]) result_path += '_mask.png' and line 1047 should be replaced by savefilename = os.path.join(self.defaultSaveDir,os.path.splitext(imgFileName)[0]) # the mask image will be save as file_mask.jpg etc. savefilename += '.xml'.

AttributeError: 'QListWidget' object has no attribute 'setItemSelected'

Hi there.

When i press click on an image in the list i got this message in console.

I am running python 3.8 pyqt5 on ubuntu focal 20.04

Traceback (most recent call last):
  File "labelImg.py", line 803, in fileitemDoubleClicked
    self.loadFile(filename)
  File "labelImg.py", line 1256, in loadFile
    self.fileListWidget.setItemSelected(fileWidgetItem, True)
AttributeError: 'QListWidget' object has no attribute 'setItemSelected'
Traceback (most recent call last):
  File "labelImg.py", line 803, in fileitemDoubleClicked
    self.loadFile(filename)
  File "labelImg.py", line 1256, in loadFile
    self.fileListWidget.setItemSelected(fileWidgetItem, True)
AttributeError: 'QListWidget' object has no attribute 'setItemSelected'

XML fiels generated by DET mode is not supported by the YOLO

Do we have a YOLO that supports DET mode?

the XML files does not have (xmin,ymin,height,widrth)

Traceback (most recent call last):
File "gen_anchors.py", line 138, in
main(args)
File "gen_anchors.py", line 124, in main
relative_w = (float(obj['xmax']) - float(obj['xmin']))/cell_w
KeyError: 'xmax'

Can't save markup data

I'm trying to run labelImgPlus under Windows using anaconda python 2.

But seems it can't save polygon markup data:

C:\Users\myuser\Anaconda2\python.exe labelImg.py

color map [u'0,0,0\n', u'255,0,0,128\n', u'0,255,0,128\n', u'0,0,255,128\n', u'1
39,0,139,128\n', u'0,139,139,128\n', u'137,104,205,128\n', u'104,34,139\n', u'22
4,102,255\n', u'255,187,255\n', u'238,58,140\n', u'205,41,144\n', u'0,191,255\n'
, u'139,125,123\n', u'240,255,240\n', u'205,179,139\n', u'34,139,34\n', u'127,25
5,0\n', u'0,100,0\n', u'240,255,240\n', u'255,246,143\n']
[<PyQt4.QtGui.QColor object at 0x000000000429BDD8>, <PyQt4.QtGui.QColor object a
t 0x00000000044BD278>, <PyQt4.QtGui.QColor object at 0x00000000044BD128>, <PyQt4
.QtGui.QColor object at 0x00000000044BD0B8>, <PyQt4.QtGui.QColor object at 0x000
00000044BD2E8>, <PyQt4.QtGui.QColor object at 0x00000000044BD358>, <PyQt4.QtGui.
QColor object at 0x00000000044BD3C8>, <PyQt4.QtGui.QColor object at 0x0000000004
4BD438>, <PyQt4.QtGui.QColor object at 0x00000000044BD4A8>, <PyQt4.QtGui.QColor
object at 0x00000000044BD518>, <PyQt4.QtGui.QColor object at 0x00000000044BD588>
, <PyQt4.QtGui.QColor object at 0x00000000044BD5F8>, <PyQt4.QtGui.QColor object
at 0x00000000044BD668>, <PyQt4.QtGui.QColor object at 0x00000000044BD6D8>, <PyQt
4.QtGui.QColor object at 0x00000000044BD748>, <PyQt4.QtGui.QColor object at 0x00
000000044BD7B8>, <PyQt4.QtGui.QColor object at 0x00000000044BD828>, <PyQt4.QtGui
.QColor object at 0x00000000044BD898>, <PyQt4.QtGui.QColor object at 0x000000000
44BD908>, <PyQt4.QtGui.QColor object at 0x00000000044BD978>, <PyQt4.QtGui.QColor
 object at 0x00000000044BD9E8>]
change mode to {'enable_color_map': False, 'mode': 1}
app mode 1
4
4
{u'01-hair': 0, u'None': 0, u'02-skin': 0, u'03-body': 0}
shapeSelectionChanged
shapeSelectionChanged
shapeSelectionChanged
shapeSelectionChanged
shape type POLYGON
Traceback (most recent call last):
  File "labelImg.py", line 1555, in saveFileAs
    self._saveFile(self.saveFileDialog())
  File "labelImg.py", line 1573, in _saveFile
    if filename and self.saveLabels(filename):
  File "labelImg.py", line 1030, in saveLabels
    with open(self.defaultSaveDir + 'label_num_dic.json', 'w') as label_num_file
:
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

NEw issue with SEG mode

When I click settings and Seg mode the program kind of crashes and outputs the following:
"
AttributeError: 'NoneType' object has no attribute 'width'
Traceback (most recent call last):
File "/labelImgPlus/libs/canvas.py", line 106, in mouseMoveEvent
pos = self.transformPos(ev.posF())
File "/labelImgPlus/libs/canvas.py", line 438, in transformPos
return point / self.scale - self.offsetToCenter()
File "/labelImgPlus/libs/canvas.py", line 443, in offsetToCenter
w, h = self.pixmap.width() * s, self.pixmap.height() * s
"

Error: Create RectBox

Hello,

When I create a RecBox, I get the error below. I can't therefore save the document and the box disappears after changing the image.
"
Traceback (most recent call last):
File "labelImg.py", line 1124, in newShape
self.actions.create.setEnabled(True)
AttributeError: 'struct' object has no attribute 'create'
"

Can not save polygon

Hi, I have trouble with you app when trying to create a polygon in segmentation mode.
This is the error

Traceback (most recent call last):
  File "/home/manhattan/new_workplace/annotation/labelImgPlus/libs/canvas.py", line 200, in mousePressEvent
    self.line[0] = self.current[-1]
TypeError: 'NoneType' object has no attribute '__getitem__'

I found this may be a bug, and I fixed in file canvas.py in line 200
from

if self.current.isClosed():
     self.finalise()
self.line[0] = self.current[-1]

This is bug because if you call self.finalise() the self.current become None.
So I fixed to below and it seemed to work

self.line[0] = self.current[-1]
if self.current.isClosed():
     self.finalise()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.