Instructions to use NadaGh/working with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use NadaGh/working with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("NadaGh/working", dtype=torch.bfloat16, device_map="cuda") prompt = "tst chair" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download diffusers/docs/source/en/api/pipelines/shap_e.md from NadaGh/working: direct link, hf CLI and curl.
- Browser
- Download file 2.25 kB
-
https://huggingface.co/NadaGh/working/resolve/main/diffusers/docs/source/en/api/pipelines/shap_e.md
- Command line
-
hf download hf://NadaGh/working/diffusers/docs/source/en/api/pipelines/shap_e.md
-
curl -L -o shap_e.md https://huggingface.co/NadaGh/working/resolve/main/diffusers/docs/source/en/api/pipelines/shap_e.md
Shap-E
The Shap-E model was proposed in Shap-E: Generating Conditional 3D Implicit Functions by Alex Nichol and Heewoo Jun from OpenAI.
The abstract from the paper is:
We present Shap-E, a conditional generative model for 3D assets. Unlike recent work on 3D generative models which produce a single output representation, Shap-E directly generates the parameters of implicit functions that can be rendered as both textured meshes and neural radiance fields. We train Shap-E in two stages: first, we train an encoder that deterministically maps 3D assets into the parameters of an implicit function; second, we train a conditional diffusion model on outputs of the encoder. When trained on a large dataset of paired 3D and text data, our resulting models are capable of generating complex and diverse 3D assets in a matter of seconds. When compared to Point-E, an explicit generative model over point clouds, Shap-E converges faster and reaches comparable or better sample quality despite modeling a higher-dimensional, multi-representation output space.
The original codebase can be found at openai/shap-e.
See the reuse components across pipelines section to learn how to efficiently load the same components into multiple pipelines.
ShapEPipeline
[[autodoc]] ShapEPipeline - all - call
ShapEImg2ImgPipeline
[[autodoc]] ShapEImg2ImgPipeline - all - call
ShapEPipelineOutput
[[autodoc]] pipelines.shap_e.pipeline_shap_e.ShapEPipelineOutput