cvhciKIT / sloth

Sloth is a tool for labeling image and video data for computer vision research.
Other
608 stars 199 forks source link

CRITICAL sloth.core.labeltool Error loading annotations: 'class' #144

Open bicepjai opened 6 years ago

bicepjai commented 6 years ago

I get the following error when i tried to open the tool from command line

(sloth-c2) sloth-1.0|⇒ sloth ../../dataset/train.json
Fontconfig error: Cannot load default config file
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
2017-11-09 00:10:27,367 CRITICAL sloth.core.labeltool           Error loading annotations: 'class'
Traceback (most recent call last):
  File "/home/bicepjai/Programs/anaconda3/envs/sloth-c2/bin/sloth", line 16, in <module>
    labeltool.execute_from_commandline(sys.argv)
  File "/home/bicepjai/Programs/anaconda3/envs/sloth-c2/lib/python2.7/site-packages/sloth/core/labeltool.py", line 160, in execute_from_commandline
    self.loadAnnotations(args[1], handleErrors=False)
  File "/home/bicepjai/Programs/anaconda3/envs/sloth-c2/lib/python2.7/site-packages/sloth/core/labeltool.py", line 230, in loadAnnotations
    (fname, self._model.root().numFiles(), self._model.root().numAnnotations())
  File "/home/bicepjai/Programs/anaconda3/envs/sloth-c2/lib/python2.7/site-packages/sloth/annotations/model.py", line 274, in numFiles
    return len(self.children())
  File "/home/bicepjai/Programs/anaconda3/envs/sloth-c2/lib/python2.7/site-packages/sloth/annotations/model.py", line 59, in children
    self._ensureAllLoaded()
  File "/home/bicepjai/Programs/anaconda3/envs/sloth-c2/lib/python2.7/site-packages/sloth/annotations/model.py", line 39, in _ensureAllLoaded
    self._ensureLoaded(i)
  File "/home/bicepjai/Programs/anaconda3/envs/sloth-c2/lib/python2.7/site-packages/sloth/annotations/model.py", line 32, in _ensureLoaded
    self._load(index)
  File "/home/bicepjai/Programs/anaconda3/envs/sloth-c2/lib/python2.7/site-packages/sloth/annotations/model.py", line 234, in _load
    fi = FileModelItem.create(self._children[index])
  File "/home/bicepjai/Programs/anaconda3/envs/sloth-c2/lib/python2.7/site-packages/sloth/annotations/model.py", line 415, in create
    if fileinfo['class'] == 'image':
KeyError: 'class'