Windows终端找不到python sript的路径目录位置

时间:2019-07-02 02:27:08

标签: python-3.x tensorflow

我正在尝试从Windows终端访问这些文件位置。我在下面提供脚本。我认为终端与Linux中访问的路径存在一些错误?

曾经尝试给出完整的目录路径,但仍然

python convert_single_image.py --png_path /mnt/d/Dream/TEST/sketch-code/src/examples/drawn_example1.png \
      --output_folder /mnt/d/Dream/TEST/sketch-code/src/generated_html \
      --model_json_file /mnt/d/Dream/TEST/sketch-code/src/bin/model_json.json \
      --model_weights_file /mnt/d/Dream/TEST/sketch-code/src/bin/weights.h5


Here's the original script:
python convert_single_image.py --png_path ../examples/drawn_example1.png \
      --output_folder ./generated_html \
      --model_json_file ../bin/model_json.json \
      --model_weights_file ../bin/weights.h5

Here's the response:

python convert_single_image.py --png_path ../examples/drawn_example1.png --output_folder ./generated_html --model_json_file ../bin/model_json.json --model_weights_file ..\bin\weights.h5
Using TensorFlow backend.
Traceback (most recent call last):
  File "convert_single_image.py", line 53, in <module>
    main()
  File "convert_single_image.py", line 49, in main
    model_weights_path = model_weights_file)
  File "D:\Dream\Sketch\sketch-code\src\classes\inference\Sampler.py", line 23, in __init__
    self.model = self.load_model(model_json_path, model_weights_path)
  File "D:\Dream\Sketch\sketch-code\src\classes\inference\Sampler.py", line 70, in load_model
    json_file = open(model_json_path, 'r')
FileNotFoundError: [Errno 2] No such file or directory: '../bin/model_json.json

'

0 个答案:

没有答案