【发布时间】:2022-11-26 04:04:14
【问题描述】:
python predict.py /path/to/image 检查点
这里图像的路径是什么....我需要提供一个图像作为输入,该图像位于文件夹 1 中,该文件夹位于文件夹 test 中,该文件夹位于文件夹 flowers 中。所以我把它写成/flowers/test/1/image.jpg,但我得到的是“没有文件或目录”
enter image description here enter image description here
我已经尝试在图像中编写语句,正如我所说,那是行不通的...我正在使用 python 进行一个大胆的纳米学位项目 AI 编程。请尽快帮助我
【问题讨论】:
-
以
/开头的路径是绝对路径。你需要写flowers/test/1/image.jpg没有前导斜杠。
标签: python