Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
YuyangYin committed May 27, 2024
1 parent cebaf61 commit 4ecda13
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@ rm blender-3.2.2-linux-x64.tar.xz

```bash
pip install objaverse
python download.py --id_path test.txt
python download.py --id_path curated.txt
```

Right-click the objaverse package in `download.py` and open the `objaverse/__init__.py` file. Change `BASE_PATH='./obj_data'` to another path you prefer. Otherwise, it will download to the default system path.
Right-click the objaverse package in `download.py` and open the `objaverse/__init__.py` file. Change `BASE_PATH='./obj_data'` at line 14 or another path you prefer. Otherwise, it will download to the default system path.

4. Render 4D images

Default setting
```bash
python render.py --obj_path "./obj_data/hf-objaverse-v1/glbs" \
--save_dir './output' \
--gpu_num 8 \
--frame_num 24 \
--azimuth_aug 1\
--elevation_aug 0\
--resolution 256 \
--mode_multi 1\
--mode_static 1\
--mode_front_view 0\
--gpu_num 8 \
--frame_num 24 \
--azimuth_aug 1 \
--elevation_aug 0 \
--resolution 256 \
--mode_multi 1 \
--mode_static 1 \
--mode_front_view 0 \
--mode_four_view 0
```

Expand Down Expand Up @@ -105,6 +105,8 @@ This project is based on numerous outstanding research efforts and open-source c
- https://github.com/hustvl/4DGaussians
- https://github.com/graphdeco-inria/gaussian-splatting
- https://github.com/graphdeco-inria/diff-gaussian-rasterization
- https://objaverse.allenai.org/objaverse-1.0/
- https://github.com/allenai/objaverse-xl


## If our 4D dataset and rendering script help your work, please consider citing our paper and starring the repository ⭐
Expand Down
20 changes: 10 additions & 10 deletions rendering/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ def execute_command(args,glb_file, gpu_id,file_name):
command=f'CUDA_VISIBLE_DEVICES={gpu_id} export DISPLAY=:0.1 && blender-3.2.2-linux-x64/blender \
--background --python blender.py -- \
--object_path {glb_file} \
--frame_num {args.frame_num} \
--output_dir {save_path} \
--gpu_id {gpu_id} \
--azimuth {azimuth}\
--elevation {elevation}\
--resolution {args.resolution} \
--mode_multi {args.mode_multi}\
--mode_static {args.mode_static}\
--mode_front {args.mode_front_view}\
--mode_four_view {args.mode_four_view}'
--frame_num {args.frame_num} \
--output_dir {save_path} \
--gpu_id {gpu_id} \
--azimuth {azimuth}\
--elevation {elevation}\
--resolution {args.resolution} \
--mode_multi {args.mode_multi}\
--mode_static {args.mode_static}\
--mode_front {args.mode_front_view}\
--mode_four_view {args.mode_four_view}'

print('command:',command)
logging.info(f'Executing command: {command}')
Expand Down
File renamed without changes.

0 comments on commit 4ecda13

Please sign in to comment.