Open
Description
I'm trying to predict on new data using the model weights that were made available on neptune.ai
After struggling a bit with some other errors, I managed to get to the python main.py predict_on_dir \
command.
This is the command I'm running
!python open-solution-mapping-challenge/main.py predict-on-dir \
--pipeline_name scoring_model \
--chunk_size 1000 \
--dir_path inference_directory \
--prediction_path resultados/predictions.json
I tried predict_on_dir but it said that command doesn't exist in main.py
now I'm stuck with this error:
/content/drive/My Drive/mappingChallenge/open-solution-mapping-challenge/src/utils.py:132: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config = yaml.load(f)
/content/drive/My Drive/mappingChallenge/open-solution-mapping-challenge/src/utils.py:132: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config = yaml.load(f)
2020-09-30 17-46-34 mapping-challenge >>> creating metadata
1it [00:00, 6260.16it/s]
2020-09-30 17-46-34 mapping-challenge >>> predicting
Traceback (most recent call last):
File "open-solution-mapping-challenge/main.py", line 68, in <module>
main()
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "open-solution-mapping-challenge/main.py", line 52, in predict_on_dir
pipeline_manager.predict_on_dir(pipeline_name, dir_path, prediction_path, chunk_size)
File "/content/drive/My Drive/mappingChallenge/open-solution-mapping-challenge/src/pipeline_manager.py", line 62, in predict_on_dir
predict_on_dir(pipeline_name, dir_path, prediction_path, chunk_size, self.logger, self.params)
File "/content/drive/My Drive/mappingChallenge/open-solution-mapping-challenge/src/pipeline_manager.py", line 177, in predict_on_dir
pipeline = PIPELINES[pipeline_name]['inference'](SOLUTION_CONFIG)
KeyError: 'inference'
I'm using google colab btw
Suggestions?
Edit: formatting
Metadata
Metadata
Assignees
Labels
No labels