Instructions to use Abdualkader/MultiViewDiff with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Abdualkader/MultiViewDiff with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Abdualkader/MultiViewDiff", 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
Update pipeline_mvdiffusion.py
Browse files- pipeline_mvdiffusion.py +2 -2
pipeline_mvdiffusion.py
CHANGED
|
@@ -65,7 +65,7 @@ class MVDiffusionPipeline(StableDiffusionPipeline):
|
|
| 65 |
image_encoder=image_encoder,
|
| 66 |
requires_safety_checker=requires_safety_checker,
|
| 67 |
)
|
| 68 |
-
self.num_views =
|
| 69 |
|
| 70 |
def load_ip_adapter(
|
| 71 |
self,
|
|
@@ -487,7 +487,7 @@ def get_camera(
|
|
| 487 |
num_frames,
|
| 488 |
elevation=15,
|
| 489 |
azimuth_start=0,
|
| 490 |
-
azimuth_span=
|
| 491 |
blender_coord=True,
|
| 492 |
extra_view=False,
|
| 493 |
):
|
|
|
|
| 65 |
image_encoder=image_encoder,
|
| 66 |
requires_safety_checker=requires_safety_checker,
|
| 67 |
)
|
| 68 |
+
self.num_views = 32
|
| 69 |
|
| 70 |
def load_ip_adapter(
|
| 71 |
self,
|
|
|
|
| 487 |
num_frames,
|
| 488 |
elevation=15,
|
| 489 |
azimuth_start=0,
|
| 490 |
+
azimuth_span=180,
|
| 491 |
blender_coord=True,
|
| 492 |
extra_view=False,
|
| 493 |
):
|