diff options
| -rw-r--r-- | cnn_v3/training/blender_export.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cnn_v3/training/blender_export.py b/cnn_v3/training/blender_export.py index 08f40ef..f8ca9f6 100644 --- a/cnn_v3/training/blender_export.py +++ b/cnn_v3/training/blender_export.py @@ -214,6 +214,15 @@ def main(): shutil.rmtree(discard_dir, ignore_errors=True) print("[blender_export] Render complete.") + # Print the next-step pack command (HOW_TO_CNN.md §"Batch packing"). + pack_script = os.path.join(os.path.dirname(os.path.abspath(__file__)), "pack_blender_sample.py") + out_abs = os.path.abspath(args.output) + print("\n[blender_export] Next step — pack EXRs into sample directories:") + print(f" for exr in {out_abs}/*.exr; do") + print(f' name=$(basename "${{exr%.exr}}")') + print(f' python3 {pack_script} --exr "$exr" --output {out_abs}/$name/') + print( " done") + if __name__ == "__main__": main() |
