poke1024/origami

origami.tool.sample options problem

kouxichao opened this issue · 1 comments

when i run python -m origami.tool.sample ./imgs , error occurs. what makes this happen?
(origami) knowvision@knowvision-Z370-HD3:~/kxc/origami$ python -m origami.tool.sample ./imgs
Traceback (most recent call last):
File "/home/knowvision/miniconda3/envs/origami/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/knowvision/miniconda3/envs/origami/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/knowvision/kxc/origami/origami/tool/sample.py", line 204, in
sample_lines()
File "/home/knowvision/miniconda3/envs/origami/lib/python3.7/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/home/knowvision/miniconda3/envs/origami/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/knowvision/miniconda3/envs/origami/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/knowvision/miniconda3/envs/origami/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/knowvision/kxc/origami/origami/tool/sample.py", line 198, in sample_lines
processor = SampleProcessor(data_path, kwargs)
File "/home/knowvision/kxc/origami/origami/tool/sample.py", line 50, in init
super().init(options)
File "/home/knowvision/kxc/origami/origami/batch/core/processor.py", line 269, in init
self._debug_write = options["debug_write"]
KeyError: 'debug_write'

@kouxichao This was a bug. Please try again with current master.