Instructions to use TencentARC/InstantMesh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use TencentARC/InstantMesh with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("TencentARC/InstantMesh", 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
Runtime error
#22
by Vladimirson - opened
Hi! Could You please fix this model?
It shows the error now "Runtime Error"
Exit code: 1. Reason: Traceback (most recent call last):
File "/home/user/app/app.py", line 7, in
import rembg
File "/usr/local/lib/python3.10/site-packages/rembg/init.py", line 5, in
from .bg import remove
File "/usr/local/lib/python3.10/site-packages/rembg/bg.py", line 7, in
import onnxruntime as ort
ModuleNotFoundError: No module named 'onnxruntime'