ksangk commited on
Commit
87d37c2
·
1 Parent(s): 66a9c17

update hf login

Browse files
Files changed (4) hide show
  1. LICENSE.txt → LICENSE +0 -0
  2. README.md +32 -1
  3. app.py +3 -3
  4. requirements.txt +3 -3
LICENSE.txt → LICENSE RENAMED
File without changes
README.md CHANGED
@@ -9,4 +9,35 @@ app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  pinned: false
10
  ---
11
 
12
+ <div align="center">
13
+ <h1>Chord: Chain of Rendering Decomposition for PBR Material Estimation from Generated Texture Images</h1>
14
+
15
+ <a href="https://arxiv.org/abs/2509.09952"><img src="https://img.shields.io/badge/arXiv-2509.09952-B31B1B?logo=arxiv&logoColor=white&style=flat-square" alt="arXiv"></a>
16
+ <a href="https://ubisoft-laforge.github.io/world/chord/"><img src="https://img.shields.io/badge/Project-Page-brightgreen?logo=ubisoft&logoColor=white&style=flat-square" alt="Project Page"></a>
17
+
18
+ [Zhi Ying](https://orcid.org/0009-0008-8390-3366)\*, [Boxiang Rong](https://ribosome-rbx.github.io/)\*, [Jingyu Wang](https://ccetaw.github.io/), [Maoyuan Xu](https://ultraman-blazar.github.io/)
19
+ </div>
20
+
21
+ Official implementation of the paper "**Chord: Chain of Rendering Decomposition for PBR Material Estimation from Generated Texture Images**".
22
+
23
+ ## License
24
+
25
+ This project is released under the **Ubisoft Machine Learning License (Research-Only - Copyleft)**. See the full terms in the [LICENSE](LICENSE) file
26
+
27
+ ## Citation
28
+
29
+ If you find our work useful, please consider citing:
30
+
31
+ ```
32
+ @misc{ying2025chord,
33
+ title={Chord: Chain of Rendering Decomposition for PBR Material Estimation from Generated Texture Images},
34
+ author={Zhi Ying and Boxiang Rong and Jingyu Wang and Maoyuan Xu},
35
+ year={2025},
36
+ eprint={2509.09952},
37
+ archivePrefix={arXiv},
38
+ primaryClass={cs.GR},
39
+ url={https://arxiv.org/abs/2509.09952},
40
+ }
41
+ ```
42
+
43
+ © [2025] Ubisoft Entertainment. All Rights Reserved.
app.py CHANGED
@@ -7,7 +7,7 @@ import copy
7
  from omegaconf import OmegaConf
8
  from torchvision.transforms import v2
9
  from torchvision.transforms.functional import to_pil_image
10
- from huggingface_hub import hf_hub_download
11
 
12
  from chord import ChordModel
13
  from chord.module import make
@@ -27,8 +27,8 @@ EXAMPLES_USECASE_3 = [
27
  ]
28
 
29
  MODEL_OBJ = None
30
- #MODEL_CKPT_PATH = hf_hub_download(repo_id="Ubisoft/ubisoft-laforge-chord", filename="chord_v1.ckpt")
31
- MODEL_CKPT_PATH = hf_hub_download(repo_id="ksangk/Chord-V1-ckpt", filename="chord_v1.ckpt")
32
  def load_model(ckpt_path):
33
  print("Loading model from:", ckpt_path)
34
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
7
  from omegaconf import OmegaConf
8
  from torchvision.transforms import v2
9
  from torchvision.transforms.functional import to_pil_image
10
+ from huggingface_hub import hf_hub_download, login
11
 
12
  from chord import ChordModel
13
  from chord.module import make
 
27
  ]
28
 
29
  MODEL_OBJ = None
30
+ login(token=os.environ["HF_TOKEN"])
31
+ MODEL_CKPT_PATH = hf_hub_download(repo_id="Ubisoft/ubisoft-laforge-chord", filename="chord_v1.ckpt")
32
  def load_model(ckpt_path):
33
  print("Loading model from:", ckpt_path)
34
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
requirements.txt CHANGED
@@ -1,10 +1,10 @@
1
- --find-links https://download.pytorch.org/whl/torch_stable.html
2
  torch
3
  torchvision
4
  huggingface_hub[hf_xet]
5
  diffusers
6
- transformers==4.37.2
7
- tokenizers==0.15.2
8
  omegaconf
9
  imageio
10
  gradio
 
1
+ --index-url https://download.pytorch.org/whl/cu128
2
  torch
3
  torchvision
4
  huggingface_hub[hf_xet]
5
  diffusers
6
+ transformers==4.57.1
7
+ tokenizers==0.22.1
8
  omegaconf
9
  imageio
10
  gradio