This commit is contained in:
hofee 2024-10-21 01:01:15 +08:00
parent c2849ce9bb
commit 022fffa7c2
2 changed files with 1 additions and 2 deletions

View File

@ -218,8 +218,6 @@ class DataGenerator:
file_path = os.path.join(depth_dir, depth_file)
new_file_path = os.path.join(depth_dir, f"{name}.png")
os.rename(file_path,new_file_path)
BlenderUtils.save_blend(scene_dir)
exit(0)
return True

View File

@ -279,6 +279,7 @@ class BlenderUtils:
scene.render.filepath = os.path.join(
output_dir, mask_dir, f"{file_name}_{cam_suffix}.png"
)
scene.render.image_settings.file_format = "PNG"
scene.render.image_settings.color_depth = "8"
scene.render.resolution_percentage = 100
scene.render.use_overwrite = False