Skip to content

Commit

Permalink
Add Objaverse mesh IDs & pre-processing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
daveredrum committed Sep 25, 2023
1 parent d9c0ee7 commit 5db4deb
Show file tree
Hide file tree
Showing 7 changed files with 671 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
outputs/
outputs/

data/objaverse/

scripts/__pycache__/
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ For the best quality of texture synthesis, there are some necessary pre-processi

We provide `scripts/normalize_mesh.py` and `scripts/rotate_mesh.py` to make the mesh preprocessing easy for you.

If you already have a normalized mesh but haven't parameterized it yet, please use `scripts/parameterize_mesh.py` to generate the UV map.

> NOTE: we expect the mesh to be triangulated.
A mesh ready for next steps should look like this:

<p align="center"><img src="docs/static/img/preprocessed.jpg" width="50%"/></p>
Expand Down Expand Up @@ -112,6 +116,16 @@ python scripts/generate_texture.py \

If you want some high-res textures, you can set `--device` to `a6000` for 3k resolution. To play around other parameters, please check `scripts/generate_texture.py`, or simply run `python scripts/generate_texture.py -h`.

## Benchmark on Objaverse subset

To generate textures for the Objaverse objects we used in the paper, please run the following script to download and pre-process those meshes:

```shell
python scripts/download_objaverse_subset.py
```

All pre-processed meshes will be downloaded to `data/objaverse/`.

## Citation

If you found our work helpful, please kindly cite this papers:
Expand Down
Loading

0 comments on commit 5db4deb

Please sign in to comment.