added to pypi

This commit is contained in:
Brett Kuprel
2022-07-01 18:16:55 -04:00
parent f0c8f258e9
commit be2beca7c0
9 changed files with 116 additions and 58 deletions
+6 -2
View File
@@ -39,8 +39,12 @@ def generate_image(
image_path: str,
token_count: int
):
is_reusable = False
model = MinDalleTorch(is_mega, is_reusable, token_count)
model = MinDalleTorch(
is_mega=is_mega,
models_root='pretrained',
is_reusable=False,
sample_token_count=token_count
)
if token_count < 256:
image_tokens = model.generate_image_tokens(text, seed)