Instructions to use jadechoghari/vfusion3d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jadechoghari/vfusion3d with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jadechoghari/vfusion3d", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
update modeling.py
#5
by JunlinHan - opened
- modeling.py +1 -1
modeling.py
CHANGED
|
@@ -67,7 +67,7 @@ class LRMGenerator(PreTrainedModel):
|
|
| 67 |
triplane_dim=config.triplane_dim, samples_per_ray=config.rendering_samples_per_ray,
|
| 68 |
)
|
| 69 |
|
| 70 |
-
def forward(self, image, camera, export_mesh=False, mesh_size=
|
| 71 |
|
| 72 |
assert image.shape[0] == camera.shape[0], "Batch size mismatch"
|
| 73 |
N = image.shape[0]
|
|
|
|
| 67 |
triplane_dim=config.triplane_dim, samples_per_ray=config.rendering_samples_per_ray,
|
| 68 |
)
|
| 69 |
|
| 70 |
+
def forward(self, image, camera, export_mesh=False, mesh_size=512, render_size=384, export_video=False, fps=30):
|
| 71 |
|
| 72 |
assert image.shape[0] == camera.shape[0], "Batch size mismatch"
|
| 73 |
N = image.shape[0]
|