mirror of
https://git.datalinker.icu/kijai/ComfyUI-Hunyuan3DWrapper.git
synced 2026-01-23 09:24:26 +08:00
Add files via upload
This commit is contained in:
parent
a9c6b5cbf0
commit
faef87a80a
@ -32,8 +32,8 @@ class PointConditioner(torch.nn.Module):
|
||||
|
||||
# open-source version of miche
|
||||
if model_name == 'miche-256-feature':
|
||||
ckpt_path = None
|
||||
dir = os.path.dirname(os.path.abspath(__file__))
|
||||
ckpt_path = None#os.path.join(dir, '..\shapevae-256.ckpt')
|
||||
model_path = os.path.join(dir, '..\shapevae-256.yaml')
|
||||
config_path = model_path
|
||||
|
||||
|
||||
@ -70,6 +70,7 @@ class MeshTransformer(Module):
|
||||
conditioned_on_pc = True,
|
||||
encoder_name = 'miche-256-feature',
|
||||
encoder_freeze = False,
|
||||
cond_dim = 768
|
||||
):
|
||||
super().__init__()
|
||||
|
||||
@ -107,7 +108,7 @@ class MeshTransformer(Module):
|
||||
# load point_cloud encoder
|
||||
if conditioned_on_pc:
|
||||
print(f'Point cloud encoder: {encoder_name} | freeze: {encoder_freeze}')
|
||||
self.conditioner = PointConditioner(model_name=encoder_name, freeze=encoder_freeze)
|
||||
self.conditioner = PointConditioner(cond_dim=cond_dim, model_name=encoder_name, freeze=encoder_freeze)
|
||||
cross_attn_dim_context = self.conditioner.dim_latent
|
||||
else:
|
||||
raise NotImplementedError
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user