Downloads · 30 days
0
amused/muse-512-finetuned
muse-512-finetuned is a machine learning model from amused. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Sep 19, 2023
Repo size
4.1 GB
Likes
0
Public
Click a slice to open those files.
.bin2 GB · 100%
From the Hugging Face model README
First install the deps using
pip install transformers accelerate ftfy
pip install -U git+https://github.com/huggingface/open-muse.git
import torch
from muse import PipelineMuse
pipe = PipelineMuse.from_pretrained("openMUSE/muse-512-finetuned").to("cuda", dtype=torch.float16)
pipe.transformer.enable_xformers_memory_efficient_attention()
prompt = "A monkey doing yoga on the beach"
images = pipe(
prompt, timesteps=16, guidance_scale=10, transformer_seq_len=1024, use_fp16=True
)
images[0]