Skip to content

Refactor controlnet and add img2img and inpaint #3386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
fd7712d
refactor controlnet and add img2img and inpaint
patrickvonplaten May 9, 2023
94e0d4f
change
patrickvonplaten May 11, 2023
7e0f6bc
First draft to get pipelines to work
patrickvonplaten May 11, 2023
c7d5221
make style
patrickvonplaten May 11, 2023
57fa09f
Fix more
patrickvonplaten May 12, 2023
9dd9e74
Fix more
patrickvonplaten May 12, 2023
edc6700
More tests
patrickvonplaten May 12, 2023
feb7b2b
Fix more
patrickvonplaten May 12, 2023
fc96b0c
Make inpainting work
patrickvonplaten May 12, 2023
0724b2f
make style and more tests
patrickvonplaten May 12, 2023
7d10292
Apply suggestions from code review
patrickvonplaten May 12, 2023
2ef2dbe
up
patrickvonplaten May 12, 2023
6c6a685
Merge branch 'add_inpaint_img2img_controlnet' of https://github.com/h…
patrickvonplaten May 12, 2023
f9cb03f
make style
patrickvonplaten May 12, 2023
9e95499
Fix imports
patrickvonplaten May 12, 2023
e58f216
Merge branch 'add_inpaint_img2img_controlnet' of https://github.com/h…
patrickvonplaten May 12, 2023
68ce349
Fix more
patrickvonplaten May 12, 2023
bbbd989
Fix more
patrickvonplaten May 12, 2023
2b965d9
Improve examples
patrickvonplaten May 12, 2023
ad9dc64
add test
patrickvonplaten May 12, 2023
4907c13
Make sure import is correctly deprecated
patrickvonplaten May 12, 2023
46c32d4
Merge branch 'main' into add_inpaint_img2img_controlnet
patrickvonplaten May 16, 2023
1dd63ca
Make sure everything works in compile mode
patrickvonplaten May 16, 2023
a2912b2
make sure authorship is correctly attributed
patrickvonplaten May 16, 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
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# This model implementation is heavily inspired by https://github.com/haofanwang/ControlNet-for-Diffusers/

import inspect
import os
Expand Down
2 changes: 2 additions & 0 deletions tests/pipelines/controlnet/test_controlnet_img2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# This model implementation is heavily inspired by https://github.com/haofanwang/ControlNet-for-Diffusers/

import gc
import random
import tempfile
Expand Down
2 changes: 2 additions & 0 deletions tests/pipelines/controlnet/test_controlnet_inpaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# This model implementation is heavily based on:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@patrickvonplaten did you mean to add anything here? Seems incomplete to me.


import gc
import random
import tempfile
Expand Down