Skip to content

Commit 835da3c

Browse files
committed
allow for setting text model adapter kwargs at CFG lib
1 parent 443ebc7 commit 835da3c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

meshgpt_pytorch/meshgpt_pytorch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,7 @@ def __init__(
11111111
condition_on_text = False,
11121112
text_cond_with_film = False,
11131113
text_condition_model_types = ('t5',),
1114+
text_condition_model_kwargs = (dict(),),
11141115
text_condition_cond_drop_prob = 0.25,
11151116
quads = False,
11161117
):
@@ -1162,6 +1163,7 @@ def __init__(
11621163
if condition_on_text:
11631164
self.conditioner = TextEmbeddingReturner(
11641165
model_types = text_condition_model_types,
1166+
model_kwargs = text_condition_model_kwargs,
11651167
cond_drop_prob = text_condition_cond_drop_prob,
11661168
text_embed_pad_value = -1.
11671169
)

meshgpt_pytorch/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.5.2'
1+
__version__ = '1.5.3'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
'accelerate>=0.25.0',
2424
'beartype',
2525
"huggingface_hub>=0.21.4",
26-
'classifier-free-guidance-pytorch>=0.6.7',
26+
'classifier-free-guidance-pytorch>=0.6.8',
2727
'einops>=0.8.0',
2828
'einx[torch]>=0.3.0',
2929
'ema-pytorch>=0.5.1',

0 commit comments

Comments
 (0)