python3:无法打开文件'.exporter_main_v2.py':[Errno 2]没有这样的文件或目录

时间:2020-09-22 00:43:05

标签: google-colaboratory tensorflow2.0

有人看见或知道告诉我下面的代码有什么问题吗?

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

enter image description here

2 个答案:

答案 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 !!!

相关问题