# run sai-cli 
sai-cli process /scratch/izar/skorokho/data/recordings_09082025/bench/ --key_frame_distance 0.01 /scratch/izar/skorokho/data/recordings_09082025/ns_bench

# scp stuff and put it to blender
scp izar:/scratch/izar/skorokho/data/recordings_09082025/ns_bench/sparse_pc.ply ns_bench.ply

# find the position and bboxes
# store them in 
touch /scratch/izar/skorokho/data/recordings_09082025/ns_bench/to_obj_scene.json

# {
#     "rotation_euler": [0.0, -0.0, 167.85],
#     "location": [0.86990, -2.756, 1.7035],
#     "bbox": [
#         [-3.574141025543213, -3.137755870819092, 0.24510526657104492], 
#         [-1.574141025543213, -1.1377558708190918, 1.3905978202819824]
#     ],
#     "points": [
#         [1300, 800],
#         [750, 600],
#         [1000, 500],
#         [900, 560]
#     ]
# }

ls /scratch/izar/skorokho/data/recordings_09082025/ns_bench/images/frame_00001.jpg

python3 scripts/real_to_scenenet_before_3dgs.py \
    --input_dir /scratch/izar/skorokho/data/recordings_09082025/ns_bench_2/ \
    --save_dir /scratch/izar/skorokho/data/recordings_09082025/ns_processed_bench_2/

python3 scripts/create_real_oos.py \
    --obj_scene_dir /scratch/izar/skorokho/data/recordings_09082025/ns_processed_outdoor_green/ \
    --scene_dir /scratch/izar/skorokho/data/recordings_09082025/ns_processed_outdoor_green/ \
    --obj_dir /scratch/izar/skorokho/data/recordings_09082025/ns_processed_bench \
    --save_dir /scratch/izar/skorokho/data/recordings_09082025/ns_processed_bench_in_garden

# train splatfacto
ns-train splatfacto \
    --data /scratch/izar/skorokho/data/recordings_09082025/ns_processed_bench_2 \
    --output-dir /scratch/izar/skorokho/data/recordings_09082025/splat_bench_2/ \
    --pipeline.model.background-color black \
    --viewer.quit-on-train-completion True \
    nerfstudio-data \
    --orientation-method none --center-method none --auto-scale-poses False