Skip to content
Merged
Show file tree
Hide file tree
Changes from 93 commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
20e5be7
refactor prior_transformer
May 11, 2023
9324a54
add
Jun 18, 2023
303eeb3
add
Jun 20, 2023
a101a17
update conversion script for renderer model
Jun 20, 2023
affe807
refactor camera a little bit
Jun 20, 2023
fca2532
clean up
Jun 20, 2023
f234253
style
Jun 20, 2023
73ce7f7
fix copies
Jun 20, 2023
1ad370b
Merge remote-tracking branch 'origin/main' into shap-ee
Jun 22, 2023
252e7a8
Update src/diffusers/schedulers/scheduling_heun_discrete.py
yiyixuxu Jun 22, 2023
48adaa6
Update src/diffusers/pipelines/shap_e/pipeline_shap_e.py
yiyixuxu Jun 22, 2023
ba0db21
Update src/diffusers/pipelines/shap_e/pipeline_shap_e.py
yiyixuxu Jun 22, 2023
dfb6a2e
alpha_transform_type
Jun 22, 2023
514eabe
Merge branch 'shap-ee' of https://github.com/huggingface/diffusers in…
Jun 22, 2023
55e59d9
remove step_index argument
Jun 22, 2023
68ef317
remove get_sigmas_karras
Jun 23, 2023
6ec68ee
remove _yiyi_sigma_to_t
Jun 23, 2023
5b5a8e6
move the rescale prompt_embeds from prior_transformer to pipeline
Jun 23, 2023
3f6b435
replace baddbmm with einsum to match origial repo
Jun 26, 2023
dd1991b
Revert "replace baddbmm with einsum to match origial repo"
Jun 26, 2023
3069e8e
add step_index to scale_model_input
Jun 26, 2023
6bd46da
Revert "move the rescale prompt_embeds from prior_transformer to pipe…
Jun 26, 2023
8f9b232
move rescale from prior_transformer to pipeline
Jun 26, 2023
7eae66b
correct step_index in scale_model_input
Jun 26, 2023
ea99154
remove print lines
Jun 26, 2023
49eb879
refactor prior - reduce arguments
Jun 26, 2023
90cc68c
make style
Jun 26, 2023
0aac118
add prior_image
Jun 27, 2023
d9f9101
arg embedding_proj_norm -> norm_embedding_proj
Jun 27, 2023
2c84391
add pre-norm for proj_embedding
Jun 27, 2023
501fed7
move rescale prompt from pipeline to _encode_prompt
Jun 28, 2023
f970afd
add img2img pipeline
Jun 28, 2023
443450c
style
Jun 28, 2023
8e27fbc
copies
Jun 28, 2023
2902f10
Update src/diffusers/models/prior_transformer.py
yiyixuxu Jun 28, 2023
7c5aa91
Update src/diffusers/models/prior_transformer.py
yiyixuxu Jun 28, 2023
7194b86
Update src/diffusers/models/prior_transformer.py
yiyixuxu Jun 28, 2023
6a460a5
Update src/diffusers/models/prior_transformer.py
yiyixuxu Jun 28, 2023
fc92184
Update src/diffusers/models/prior_transformer.py
yiyixuxu Jun 28, 2023
6ca8e55
Update src/diffusers/models/prior_transformer.py
yiyixuxu Jun 28, 2023
92d84f9
Update src/diffusers/models/prior_transformer.py
yiyixuxu Jun 28, 2023
b2c31f2
Update src/diffusers/models/prior_transformer.py
yiyixuxu Jun 28, 2023
04160fa
Update src/diffusers/models/prior_transformer.py
yiyixuxu Jun 28, 2023
ece3bab
Update src/diffusers/models/prior_transformer.py
yiyixuxu Jun 28, 2023
1ac3c42
finish refactor prior_tranformer
Jun 29, 2023
1c6d30b
make style
Jun 29, 2023
7348820
refactor renderer
Jun 29, 2023
172c2db
fix
Jun 29, 2023
d8bb607
make style
Jun 29, 2023
51d84b2
refactor img2img
Jun 29, 2023
30b5391
remove params_proj
Jun 29, 2023
0630626
add test
Jun 29, 2023
d92350e
add upcast_softmax to prior_transformer
Jun 30, 2023
2dfc351
enable num_images_per_prompt, add save_gif utility
Jun 30, 2023
295077a
add
Jun 30, 2023
2027e9b
add fast test
Jun 30, 2023
7ff4fcc
make style
Jun 30, 2023
32145b8
add slow test
Jun 30, 2023
c393463
style
Jun 30, 2023
a98094d
add test for img2img
Jun 30, 2023
944f8a6
refactor
Jun 30, 2023
d6f5011
Merge branch 'main' into shap-ee
yiyixuxu Jun 30, 2023
3cac8d2
enable batching
Jun 30, 2023
de15046
style
Jun 30, 2023
e44fcb5
refactor scheduler
Jul 2, 2023
fb2319e
update test
Jul 2, 2023
9c78816
style
Jul 2, 2023
76c19d6
attempt to solve batch related tests timeout
Jul 2, 2023
f6d184b
add doc
Jul 3, 2023
bd49532
Merge branch 'main' into shap-ee
patrickvonplaten Jul 3, 2023
a4e12f4
Update src/diffusers/pipelines/shap_e/pipeline_shap_e.py
yiyixuxu Jul 3, 2023
f4849f5
Update src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py
yiyixuxu Jul 3, 2023
19aa590
hardcode rendering related config
Jul 3, 2023
73438f6
update betas_for_alpha_bar on ddpm_scheduler
Jul 3, 2023
66dadc1
fix copies
Jul 3, 2023
a06ae4a
fix
Jul 3, 2023
b46b338
export_to_gif
Jul 3, 2023
29c0bba
style
Jul 3, 2023
6d2c204
second attempt to speed up batching tests
Jul 3, 2023
88db770
add doc page to index
Jul 3, 2023
4978d3c
Remove intermediate clipping
patrickvonplaten Jul 3, 2023
3330cad
3rd attempt to speed up batching tests
Jul 3, 2023
bce48af
Remvoe time index
patrickvonplaten Jul 4, 2023
3acaa3d
simplify scheduler
patrickvonplaten Jul 4, 2023
d5c1eff
Fix more
patrickvonplaten Jul 4, 2023
51e04ad
Fix more
patrickvonplaten Jul 4, 2023
3a489b9
Merge branch 'main' into shap-ee
patrickvonplaten Jul 4, 2023
67ca56c
fix more
patrickvonplaten Jul 4, 2023
78868f8
Merge branch 'shap-ee' of https://github.com/huggingface/diffusers in…
patrickvonplaten Jul 4, 2023
7c4c75b
make style
patrickvonplaten Jul 4, 2023
a88ea4c
fix schedulers
patrickvonplaten Jul 4, 2023
68f70c3
fix some more tests
patrickvonplaten Jul 4, 2023
ec39247
finish
patrickvonplaten Jul 4, 2023
9ebf816
add one more test
patrickvonplaten Jul 4, 2023
9328784
Merge branch 'shap-ee' of https://github.com/huggingface/diffusers in…
Jul 5, 2023
438946a
Apply suggestions from code review
yiyixuxu Jul 5, 2023
698edbb
Merge branch 'shap-ee' of https://github.com/huggingface/diffusers in…
Jul 5, 2023
1dab075
style
Jul 5, 2023
c437d9c
Merge branch 'main' into shap-ee
yiyixuxu Jul 5, 2023
ca2b540
apply feedbacks
Jul 5, 2023
1dfb3f8
style
Jul 5, 2023
1a82d1e
fix copies
Jul 5, 2023
172eeeb
add one example
Jul 5, 2023
4171e6c
style
Jul 5, 2023
39e8aa8
add example for img2img
Jul 5, 2023
c604ab6
fix doc
Jul 5, 2023
2016fe0
fix more doc strings
Jul 5, 2023
00119be
size -> frame_size
Jul 5, 2023
3741673
style
Jul 5, 2023
fd2aa2b
update doc
Jul 5, 2023
4d4ad1f
style
Jul 5, 2023
51506bd
fix on doc
Jul 5, 2023
b4a92f4
update repo name
Jul 6, 2023
f36c668
improve the usage example in shap-e img2img
sayakpaul Jul 6, 2023
82cd50e
add usage examples in the shap-e docs.
sayakpaul Jul 6, 2023
c271f62
consolidate examples.
sayakpaul Jul 6, 2023
8c7a276
minor fix.
sayakpaul Jul 6, 2023
734a589
Merge branch 'main' into shap-ee
sayakpaul Jul 6, 2023
c8b08ac
update doc
Jul 6, 2023
ce4dbd2
Apply suggestions from code review
patrickvonplaten Jul 6, 2023
addff79
Apply suggestions from code review
patrickvonplaten Jul 6, 2023
8b97857
remove upcast
patrickvonplaten Jul 6, 2023
43c6044
Merge branch 'main' of https://github.com/huggingface/diffusers into …
patrickvonplaten Jul 6, 2023
c0912dc
Make sure background is white
patrickvonplaten Jul 6, 2023
5c609e6
Update src/diffusers/pipelines/shap_e/pipeline_shap_e.py
patrickvonplaten Jul 6, 2023
eb7225c
Apply suggestions from code review
patrickvonplaten Jul 6, 2023
49e1123
Finish
patrickvonplaten Jul 6, 2023
ad5d7b1
Apply suggestions from code review
pcuenca Jul 6, 2023
2bd69b6
Update src/diffusers/pipelines/shap_e/pipeline_shap_e.py
pcuenca Jul 6, 2023
f338eda
Make style
pcuenca Jul 6, 2023
3699dde
Merge branch 'main' into shap-ee
patrickvonplaten Jul 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/source/en/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@
title: Self-Attention Guidance
- local: api/pipelines/semantic_stable_diffusion
title: Semantic Guidance
- local: api/pipelines/shap_e
title: Shap-E
- local: api/pipelines/spectrogram_diffusion
title: Spectrogram Diffusion
- sections:
Expand Down
38 changes: 38 additions & 0 deletions docs/source/en/api/pipelines/shap_e.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
-->

# Shap-E

## Overview

The Shap-E model was proposed in [ Shap-E: Generating Conditional 3D Implicit Functions](https://arxiv.org/abs/2305.02463) by Alex Nichol and Heewon Jun from [OpenAI](https://github.com/openai).

The abstract of paper is the following:

*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 [here](https://github.com/openai/shap-e)

## Available Pipelines:

| Pipeline | Tasks |
|---|---|
| [pipeline_shap_e.py](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/shap_e/pipeline_shap_e.py) | *Text-to-Image Generation* |
| [pipeline_shap_e_img2img.py](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py) | *Image-to-Image Generation* |

## ShapEPipeline
[[autodoc]] ShapEPipeline
- all
- __call__

[[autodoc]] ShapEImg2ImgPipeline
- all
- __call__


Loading