有人看见或知道告诉我下面的代码有什么问题吗?
在google colab
代码上:
!python .\exporter_main_v2.py --input_type image_tensor --pipeline_config_path .\models\my_efficientdet_d1\pipeline.config --trained_checkpoint_dir .\models\my_efficientdet_d1\ --output_directory .\exported-models\my_model
输出消息:
python3: can't open file '.exporter_main_v2.py': [Errno 2] No such file or directory
答案 0 :(得分:0)
检查要运行的文件是否在当前正在使用的目录中。
答案 1 :(得分:0)
解决了!问题是在colab上发生了反冲。
正确的路径是: python ./exporter_main_v2.py --input_type image_tensor --pipeline_config_path ./models/my_ssd_resnet50_v1_fpn/pipeline.config --trained_checkpoint_dir ./models/my_ssd_resnet50_v1_fpn/ --output_directory ./exported-models/my_
tks !!!