JiantaoLin
commited on
Commit
·
b5de118
1
Parent(s):
b67d0e7
new
Browse files
pipeline/kiss3d_wrapper.py
CHANGED
@@ -67,7 +67,7 @@ def init_wrapper_from_config(config_path):
|
|
67 |
flux_dtype = config_['flux'].get('dtype', 'bf16')
|
68 |
flux_controlnet_pth = config_['flux'].get('controlnet', None)
|
69 |
# flux_lora_pth = config_['flux'].get('lora', None)
|
70 |
-
flux_lora_pth = hf_hub_download(repo_id="LTT/
|
71 |
flux_redux_pth = config_['flux'].get('redux', None)
|
72 |
|
73 |
if flux_base_model_pth.endswith('safetensors'):
|
@@ -114,7 +114,7 @@ def init_wrapper_from_config(config_path):
|
|
114 |
)
|
115 |
|
116 |
# unet_ckpt_path = config_['multiview'].get('unet', None)
|
117 |
-
unet_ckpt_path = hf_hub_download(repo_id="LTT/
|
118 |
if unet_ckpt_path is not None:
|
119 |
state_dict = torch.load(unet_ckpt_path, map_location='cpu')['state_dict']
|
120 |
state_dict = {k[10:]: v for k, v in state_dict.items() if k.startswith('unet.unet.')}
|
|
|
67 |
flux_dtype = config_['flux'].get('dtype', 'bf16')
|
68 |
flux_controlnet_pth = config_['flux'].get('controlnet', None)
|
69 |
# flux_lora_pth = config_['flux'].get('lora', None)
|
70 |
+
flux_lora_pth = hf_hub_download(repo_id="LTT/Kiss3DGen", filename="rgb_normal_large.safetensors", repo_type="model", token=access_token)
|
71 |
flux_redux_pth = config_['flux'].get('redux', None)
|
72 |
|
73 |
if flux_base_model_pth.endswith('safetensors'):
|
|
|
114 |
)
|
115 |
|
116 |
# unet_ckpt_path = config_['multiview'].get('unet', None)
|
117 |
+
unet_ckpt_path = hf_hub_download(repo_id="LTT/Kiss3DGen", filename="flexgen_19w.ckpt", repo_type="model", token=access_token)
|
118 |
if unet_ckpt_path is not None:
|
119 |
state_dict = torch.load(unet_ckpt_path, map_location='cpu')['state_dict']
|
120 |
state_dict = {k[10:]: v for k, v in state_dict.items() if k.startswith('unet.unet.')}
|