This commit is contained in:
2024-11-07 19:33:18 +08:00
parent 5bcd0fc6e3
commit 2cd811c1b7
8 changed files with 77 additions and 105 deletions

View File

@@ -86,9 +86,10 @@ class RenderUtil:
json.dump(params, f)
start_time = time.time()
result = subprocess.run([
'blender', '-b', '-P', script_path, '--', temp_dir
'/home/hofee/blender-4.0.2-linux-x64/blender', '-b', '-P', script_path, '--', temp_dir
], capture_output=True, text=True)
end_time = time.time()
print(f"-- Time taken for blender: {end_time - start_time} seconds")
path = os.path.join(temp_dir, "tmp")
cam_info = DataLoadUtil.load_cam_info(path, binocular=True)