jadechoghari
commited on
Commit
•
806eb8e
1
Parent(s):
1dff7ce
Update README.md
Browse files
README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
---
|
2 |
-
library_name: diffusers
|
3 |
-
license: mit
|
4 |
-
---
|
5 |
|
6 |
# Autoregressive Image Generation without Vector Quantization
|
7 |
|
@@ -23,12 +23,13 @@ pipeline = DiffusionPipeline.from_pretrained("jadechoghari/mar", trust_remote_co
|
|
23 |
|
24 |
# generate an image with the model
|
25 |
generated_image = pipeline(
|
26 |
-
model_type="
|
27 |
seed=42, # set a seed for reproducibility
|
28 |
num_ar_steps=64, # number of autoregressive steps
|
29 |
class_labels=[207, 360, 388], # provide valid ImageNet class labels
|
30 |
cfg_scale=4, # classifier-free guidance scale
|
31 |
output_dir="./images", # directory to save generated images
|
|
|
32 |
)
|
33 |
|
34 |
# display the generated image
|
|
|
1 |
+
---
|
2 |
+
library_name: diffusers
|
3 |
+
license: mit
|
4 |
+
---
|
5 |
|
6 |
# Autoregressive Image Generation without Vector Quantization
|
7 |
|
|
|
23 |
|
24 |
# generate an image with the model
|
25 |
generated_image = pipeline(
|
26 |
+
model_type="mar_huge", # choose from 'mar_base', 'mar_large', or 'mar_huge'
|
27 |
seed=42, # set a seed for reproducibility
|
28 |
num_ar_steps=64, # number of autoregressive steps
|
29 |
class_labels=[207, 360, 388], # provide valid ImageNet class labels
|
30 |
cfg_scale=4, # classifier-free guidance scale
|
31 |
output_dir="./images", # directory to save generated images
|
32 |
+
cfg_schedule = "constant", # choose between 'constant' (suggested) and 'linear'
|
33 |
)
|
34 |
|
35 |
# display the generated image
|