Я застрял на части вывода, данная инструкция, похоже, не поддерживает интерпретацию синтаксиса PowerShell. >
Код: Выделить всё
# run from `models/`
python3 -m official.projects.unified_detector.run_inference \
--gin_file=official/projects/unified_detector/configs/gin_files/unified_detector_model.gin \
--ckpt_path=
\
--img_file= \
--output_path=/demo.jsonl \
--vis_dir=
Код: Выделить всё
at Line:2 Characters:3
--gin_file=official/projects/unified_detector/configs/gin_files/unifi ...
~
'--' The operator is missing after the unary operator.
at Line:2 Characters:3
--gin_file=official/projects/unified_detector/configs/gin_files/unifi ...
Unexpected 'gin_file=official/projects/unified_detector/configs/gin_files/unified_detector_model.gin' vocabulary primitive in operation or statement.
Код: Выделить всё
from official.projects.unified_detector import external_configurables # pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'official'
Код: Выделить всё
# run from `models/`
python3 -m official.projects.unified_detector.run_inference `
--gin_file=official/projects/unified_detector/configs/gin_files/unified_detector_model.gin `
--ckpt_path=
`
--img_file= `
--output_path=/demo.jsonl `
--vis_dir=
Я ожидаю получить синтаксис PowerShell для запуска модуля с вводом внешнего пути к файлу, подойдет либо однострочная, либо многострочная команда. , если это работает.
Любая помощь приветствуется!
Подробнее здесь: https://stackoverflow.com/questions/785 ... -file-path