Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

KeyError: 'v3' when running origami.batch.detect.flow #11

Open
isag91 opened this issue Mar 11, 2021 · 0 comments
Open

KeyError: 'v3' when running origami.batch.detect.flow #11

isag91 opened this issue Mar 11, 2021 · 0 comments

Comments

@isag91
Copy link

isag91 commented Mar 11, 2021

I have used the default origami models from Dropbox to run origami.batch.detect.segment. The contours process worked fine but I got a KeyError when running origami.batch.detect.flow

python -m origami.batch.detect.flow ./IMG2
running origami.batch.detect.flow.
scanning IMG2... done.
1 documents found, 1 ready to process.
  0%|                                                                                           | 0/1 [00:00<?, ?it/s]ERROR:root:Failed to process IMG2/00003.jpg.
Traceback (most recent call last):
  File "/home/isabelle/Tools/origami/origami/batch/core/processor.py", line 411, in _trigger_process1
    runtime_info = self.process(p, **kwargs)
  File "/home/isabelle/Tools/origami/origami/batch/detect/flow.py", line 356, in process
    blocks = warped.regions.by_path
  File "/home/isabelle/anaconda3/envs/origami/lib/python3.7/site-packages/cached_property.py", line 36, in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/home/isabelle/Tools/origami/origami/batch/core/io.py", line 307, in regions
    open=self._open)
  File "/home/isabelle/Tools/origami/origami/batch/core/io.py", line 176, in __init__
    open=open).items:
  File "/home/isabelle/Tools/origami/origami/batch/core/io.py", line 141, in read_contours
    if not filter_path(parts):
  File "/home/isabelle/Tools/origami/origami/batch/core/io.py", line 126, in filter_path
    t = PredictorType[predictions[prediction_name]["type"]]
KeyError: 'v3'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant