Instructions to use bhuvanmdev/LGM-f with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use bhuvanmdev/LGM-f with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("bhuvanmdev/LGM-f", 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 lgm/lgm.py
Browse files- lgm/lgm.py +1 -1
lgm/lgm.py
CHANGED
|
@@ -282,7 +282,7 @@ class LGM(ModelMixin, ConfigMixin):
|
|
| 282 |
x = self.unet(images,V) ###
|
| 283 |
x = self.conv(x)
|
| 284 |
|
| 285 |
-
x = x.reshape(B,
|
| 286 |
|
| 287 |
x = x.permute(0, 1, 3, 4, 2).reshape(B, -1, 14)
|
| 288 |
|
|
|
|
| 282 |
x = self.unet(images,V) ###
|
| 283 |
x = self.conv(x)
|
| 284 |
|
| 285 |
+
x = x.reshape(B, V, 14, self.splat_size, self.splat_size)
|
| 286 |
|
| 287 |
x = x.permute(0, 1, 3, 4, 2).reshape(B, -1, 14)
|
| 288 |
|