Instructions to use castlebbs/multi-view-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use castlebbs/multi-view-diffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("castlebbs/multi-view-diffusion", 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
dylanebert commited on
Commit ·
1144e46
1
Parent(s): 9a06fc4
rename pipeline
Browse files- convert_mvdream_to_diffusers.py +1 -1
- pipeline_mvdream.py → pipeline.py +0 -0
- run_imagedream.py +1 -1
- run_mvdream.py +1 -1
convert_mvdream_to_diffusers.py
CHANGED
|
@@ -18,7 +18,7 @@ from accelerate.utils import set_module_tensor_to_device
|
|
| 18 |
from transformers import CLIPTextModel, CLIPTokenizer, CLIPVisionModel, CLIPImageProcessor
|
| 19 |
|
| 20 |
from mv_unet import MultiViewUNetModel
|
| 21 |
-
from
|
| 22 |
import kiui
|
| 23 |
|
| 24 |
logger = logging.get_logger(__name__)
|
|
|
|
| 18 |
from transformers import CLIPTextModel, CLIPTokenizer, CLIPVisionModel, CLIPImageProcessor
|
| 19 |
|
| 20 |
from mv_unet import MultiViewUNetModel
|
| 21 |
+
from pipeline import MVDreamPipeline
|
| 22 |
import kiui
|
| 23 |
|
| 24 |
logger = logging.get_logger(__name__)
|
pipeline_mvdream.py → pipeline.py
RENAMED
|
File without changes
|
run_imagedream.py
CHANGED
|
@@ -2,7 +2,7 @@ import torch
|
|
| 2 |
import kiui
|
| 3 |
import numpy as np
|
| 4 |
import argparse
|
| 5 |
-
from
|
| 6 |
|
| 7 |
pipe = MVDreamPipeline.from_pretrained(
|
| 8 |
# "./weights_imagedream", # local weights
|
|
|
|
| 2 |
import kiui
|
| 3 |
import numpy as np
|
| 4 |
import argparse
|
| 5 |
+
from pipeline import MVDreamPipeline
|
| 6 |
|
| 7 |
pipe = MVDreamPipeline.from_pretrained(
|
| 8 |
# "./weights_imagedream", # local weights
|
run_mvdream.py
CHANGED
|
@@ -2,7 +2,7 @@ import torch
|
|
| 2 |
import kiui
|
| 3 |
import numpy as np
|
| 4 |
import argparse
|
| 5 |
-
from
|
| 6 |
|
| 7 |
pipe = MVDreamPipeline.from_pretrained(
|
| 8 |
# "./weights_mvdream", # local weights
|
|
|
|
| 2 |
import kiui
|
| 3 |
import numpy as np
|
| 4 |
import argparse
|
| 5 |
+
from pipeline import MVDreamPipeline
|
| 6 |
|
| 7 |
pipe = MVDreamPipeline.from_pretrained(
|
| 8 |
# "./weights_mvdream", # local weights
|