Instructions to use facebook/vfusion3d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/vfusion3d with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("facebook/vfusion3d", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 798 Bytes
b579854 | 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 | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# This Script Assumes Python 3.8.19, CUDA 12.1. Similar package versions might still work but they are not tested.
conda deactivate
# Set environment variables
export ENV_NAME=vfusion3d
export PYTHON_VERSION=3.8.19
export CUDA_VERSION=12.1
# Create a new conda environment and activate it
conda create -n $ENV_NAME python=$PYTHON_VERSION
conda activate $ENV_NAME
conda install pytorch=2.3.0 torchvision==0.18.0 pytorch-cuda=$CUDA_VERSION -c pytorch -c nvidia
pip install transformers
pip install imageio[ffmpeg]
pip install PyMCubes
pip install trimesh
pip install rembg[gpu,cli]
pip install kiui |