Google Colab Blender渲染错误:无法读取文件



尝试渲染单个帧按照这个脚本";Blender_script_for_Google_Colab_using_the_GPU.ipynb"由——https://github.com/donmahallem

已成功安装GDrive并安装Blender。从上到下逐个执行所有单元格。

这是最后一个单元格的输出

found bundled python: /content/blender2.83.12/2.83/python
Error: Cannot read file '/content/{/content/drive/MyDrive/Blender/donut.blend}': No such file or directory
<bpy_struct, CyclesPreferences at 0x7f6366c38ba8>
Device found CUDA
Activating <bpy_struct, CyclesDeviceSettings("Tesla T4")>
Activating <bpy_struct, CyclesDeviceSettings("Tesla T4")>
Blender quit```

答案

它应该像这个

!/content/blender2.83.12/blender -P './setgpu.py' -b -noaudio '/content/drive/MyDrive/Blender/donut.blend' -E CYCLES -o '/content/drive/MyDrive/Blender/test_mixed_####.png' -f 1 |& tee '/content/drive/MyDrive/Blender/log.txt'

不像这个

!/content/blender2.83.12/blender -P './setgpu.py' -b -noaudio '{/content/drive/MyDrive/Blender/donut.blend}' -E CYCLES -o '{/content/drive/MyDrive/Blender/test_mixed_####.png}' -f 1 |& tee '/content/drive/MyDrive/Blender/log.txt'

简言之,我忘记从"中删除花括号{}Blend_file_path"以及">Output_path";

我认为您应该在目录路径中使用"My Drive",而不是"MyDrive"。

最新更新