Instructions to use TMElyralab/MuseV with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use TMElyralab/MuseV with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("TMElyralab/MuseV", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
File size: 1,096 Bytes
de0a2a9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | FROM anchorxia/musev:1.0.1
#MAINTAINER 维护者信息
LABEL MAINTAINER="anchorxia"
LABEL Email="anchorxia@tencent.com, zhanchao019@foxmail.com"
LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"
# RUN useradd -r huggingface_root
# USER huggingface_root
SHELL ["/bin/bash", "--login", "-c"]
USER root
RUN chown root:root -R /root
WORKDIR /root
RUN git clone --recursive https://github.com/TMElyralab/MuseV.git -b deploy
RUN echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV" >> ~/.bashrc \
&& echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV/MMCM" >> ~/.bashrc \
&& echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV/diffusers/src" >> ~/.bashrc \
&& echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV/controlnet_aux/src" >> ~/.bashrc
#WORKDIR /root/MuseV/scripts/gradio
RUN chmod -R 777 /root
RUN mv /root/MuseV/* /
WORKDIR /scripts/gradio
#### install requirement here
RUN pip install cuid gradio huggingface_hub
#RUN chmod -R 777 /
RUN mkdir /checkpoints
EXPOSE 7860
#todo: need change to app.py
CMD ["python", "app_test.py"] |