Skip to content
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

Stable diffusion controlnet support #813

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

TianmengChen
Copy link

@TianmengChen TianmengChen commented Jul 10, 2024

Stable diffusion controlnet support depends on huggingface/optimum#1950 this PR

optimum/intel/openvino/modeling_diffusion.py Outdated Show resolved Hide resolved
optimum/intel/version.py Outdated Show resolved Hide resolved
@sammysun0711
Copy link
Contributor

Please use ruff and black to check style format

optimum-intel/Makefile

Lines 23 to 33 in 439d61f

style_check:
black --check .
ruff check .
style:
black .
ruff check . --fix
# Run tests for the library
test:
python -m pytest tests

Comment on lines +1225 to +1234
# This attribute is needed to keep one reference on the temporary directory, since garbage collecting
# would end-up removing the directory containing the underlying OpenVINO model
self._model_save_dir_tempdirectory_instance = None
if isinstance(model_save_dir, TemporaryDirectory):
self._model_save_dir_tempdirectory_instance = model_save_dir
self._model_save_dir = Path(model_save_dir.name)
elif isinstance(model_save_dir, str):
self._model_save_dir = Path(model_save_dir)
else:
self._model_save_dir = model_save_dir
Copy link
Contributor

Choose a reason for hiding this comment

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

Please apply same fix for controlnet in export_controlnet(): #749

@TianmengChen TianmengChen marked this pull request as ready for review October 15, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants