Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
315 commits
Select commit Hold shift + click to select a range
9d18c6d
Added new web
arisha07 Feb 9, 2023
c9aa2fe
Final push
arisha07 Feb 9, 2023
af65e3d
Merge pull request #5 from intel-sandbox/openvino-gimp
RyanMetcalfeInt8 Feb 10, 2023
8cd2b4b
Added in-painting to main branch of open-source
arisha07 Jun 23, 2023
2a14a41
Added model conversion support for SD1.5 Inpainting
arisha07 Jun 23, 2023
98b8e1a
Added inital image from canvas support
arisha07 Jun 24, 2023
7332898
Modified mask creation step, fixed bug in load model, updated readme
arisha07 Jun 27, 2023
1b8acdf
small readme update
arisha07 Jun 27, 2023
4565e0e
small readme update
arisha07 Jun 27, 2023
e193974
small readme update
arisha07 Jun 27, 2023
fd62ae6
small readme update
arisha07 Jun 27, 2023
c8b1f5a
Added controlnet-openpose
arisha07 Aug 3, 2023
dac5db7
First version of updated internal version with external & internal co…
gblong1 Aug 11, 2023
ce68ee4
Optimized pipeline - moving infer_request.wait()
gblong1 Aug 15, 2023
fc95446
updated pipeline to N=2 controlnet-pose IR
gblong1 Aug 15, 2023
85491bc
Added Super-Res workflow in SD for acer
gblong1 Aug 15, 2023
120d858
Latest optimized pipeline wirh share_outputs = True etc.
gblong1 Aug 16, 2023
5aac575
updated pipeline to use ergan and set SR resolution to landscape 2240…
gblong1 Aug 18, 2023
98764a7
keeping final cache.png image
gblong1 Aug 18, 2023
59ec9f2
updated to run esrgan on GPU
gblong1 Aug 21, 2023
2976f3a
Added inpainting internal version and updated device list to show NPU…
gblong1 Aug 28, 2023
ffb235f
updated transformer version and removed unwanted debug prints
gblong1 Aug 29, 2023
823a15f
Merge pull request #7 from intel-sandbox/main_temp
arisha07 Aug 29, 2023
416ffa8
Update stable-diffusion-ov-server.py
luke-lin-vmc Sep 4, 2023
a05eb7f
Merge pull request #9 from luke-lin-vmc/innovation_v2_John
arisha07 Sep 5, 2023
858d43e
Added model caching for SR model to reduce the load time
gblong1 Sep 5, 2023
da444ba
Added model caching for SR model to reduce the load time
gblong1 Sep 6, 2023
d7cad78
Added padding as input image is square and output landscape
gblong1 Sep 12, 2023
2d702e1
fixed a bug in SR standalone plugin
gblong1 Sep 13, 2023
90b31ac
Fixed a bug in style transfer and semseg
arisha07 Sep 27, 2023
a3a382a
fixed progress bar update in controlnet-pose, added model caching for…
arisha07 Sep 27, 2023
468b0a8
Merge pull request #10 from intel-sandbox/main_temp
arisha07 Sep 27, 2023
1c6bbc4
Updates for VPUX/VPU to NPU transition
gblong1 Oct 2, 2023
db30a37
Removed direct SR support from SD gui for release
arisha07 Oct 9, 2023
6dd27d5
Added controlnet-canny internal blob support
arisha07 Oct 10, 2023
d8e6cf6
Updates to the path specification to be cross platform compatible
gblong1 Oct 18, 2023
5bb2489
Updating paths to be cross platform compatible
gblong1 Oct 18, 2023
97798d4
Update to OV 2023.0.2
gblong1 Oct 18, 2023
d4e02b4
Cleanup of _NEW and _org files
gblong1 Oct 18, 2023
10ac1a1
Combined StableDiffusion engines into one module
gblong1 Oct 18, 2023
d5b5b84
Run Inference becomes Generate, Internal becomes Advanced.
gblong1 Oct 24, 2023
9265f90
Replaced model conversion with model download from hugging face, some…
arisha07 Nov 8, 2023
27cea49
fixed a bug in repo-id for HF download
arisha07 Nov 8, 2023
af37fa1
bug fix around shutil.copytree
arisha07 Nov 8, 2023
8a82800
uncomment the delete HF model cache
arisha07 Nov 8, 2023
d66a804
Fixed few more bugs
arisha07 Nov 8, 2023
4a40275
Fixed a typo
arisha07 Nov 8, 2023
709280b
Removed UniPCM scheduler from local file for all batch-size 2 controlnet
arisha07 Nov 8, 2023
6179810
Fixed corrupt image issue with landscape and portrait models:
arisha07 Nov 9, 2023
6df53d5
Moved NPU to INT8 and added LCM
gblong1 Nov 9, 2023
6e40f50
Merge branch 'release_v1' of https://github.com/intel-sandbox/GIMP-ML…
gblong1 Nov 9, 2023
5219c92
Updated import of diffusion pipeline for diffusers 0.23.0
gblong1 Nov 14, 2023
76fe008
Initial checkin of working LCM
gblong1 Nov 14, 2023
ec79c25
Updated to OV 2023.1.0 and diffusers 0.23.0. Added accelerate
gblong1 Nov 14, 2023
e429ef5
removed some debug statements.
gblong1 Nov 15, 2023
00250fb
Moving install to use requirements.txt to ease linux/windows parity
gblong1 Nov 18, 2023
6f67661
Updates for the UI to hide non-needed elements for LCM
gblong1 Nov 18, 2023
4ffd387
Removed old class, other LCM updates
gblong1 Nov 18, 2023
f0e7e5f
Adding LCM Scheduler and removing unneeded prints.
gblong1 Nov 20, 2023
bcd5ec0
Updated Latent_Consistency to SD_1.5_lcm
gblong1 Nov 20, 2023
3f6cb85
Removed HF pull of scheduler for LCM. Commented out scheduler log print
gblong1 Nov 21, 2023
4820688
updated LCM model dir to be in square_lcm
gblong1 Nov 21, 2023
ecfaf57
added lcm in model download
arisha07 Nov 21, 2023
57800f4
Merge branch 'main' into release_v1
arisha07 Nov 21, 2023
2db7bd9
Merge pull request #12 from intel-sandbox/release_v1
arisha07 Nov 21, 2023
ab3a542
update tensorflow version for scan issue
arisha07 Nov 21, 2023
157279f
Merge pull request #13 from intel-sandbox/release_v1
arisha07 Nov 21, 2023
6afbbf3
update onnx version for scan issue
arisha07 Nov 21, 2023
f88a005
Merge pull request #14 from intel-sandbox/release_v1
arisha07 Nov 21, 2023
108439c
update README
arisha07 Nov 21, 2023
ea7fef3
Fixed tabs v spaces
gblong1 Nov 21, 2023
9a460a0
Added model_setup to Linux install script.
gblong1 Nov 21, 2023
8913240
Updated to be linux compatible. added functions, and put back the "al…
gblong1 Nov 22, 2023
a8df1af
Merge pull request #15 from intel-sandbox/model_setup_fixes_for_linux
arisha07 Nov 22, 2023
22c6ee6
Merge pull request #16 from intel-sandbox/release_v1
arisha07 Nov 28, 2023
caee6ac
Update README.md
gblong1 Nov 29, 2023
3be765f
Merge pull request #17 from intel-sandbox/update_readme_for_Linux
RyanMetcalfeInt8 Nov 30, 2023
ad1d079
Update model_setup.py to remove token
gblong1 Nov 30, 2023
a61437d
Merge pull request #18 from intel-sandbox/remove_HF_Token
RyanMetcalfeInt8 Nov 30, 2023
ec97adc
Fixed device list parsing due to bug found in systmed with dGPU
gblong1 Dec 5, 2023
6d8c39e
Merge pull request #19 from intel-sandbox/device_list_fix
RyanMetcalfeInt8 Dec 5, 2023
0678351
updated to match public repo
arisha07 Mar 4, 2024
70f498f
updated to match public repo
arisha07 Mar 4, 2024
e3d8815
Initial commit
arisha07 Jul 22, 2022
8182fe1
Rebase to http://github.com/intel/openvino-ai-plugins-gimp
gblong1 May 2, 2024
97abc98
removed gimpml dir, not needed.
gblong1 May 3, 2024
e29f439
Merge branch 'rebase_with_opensource'
gblong1 May 3, 2024
3eadd60
Merge branch 'main' into rebase_with_opensource
gblong1 May 3, 2024
440a23c
Merge pull request #20 from intel-sandbox/rebase_with_opensource
arisha07 May 3, 2024
7431dac
Fixed installer location bug.
gblong1 May 4, 2024
c30d867
initial set of changes to support config files for models to determine
gblong1 May 4, 2024
8021d8b
Adding driver detection for NPU
gblong1 May 6, 2024
26d4a53
more updates for powermodes
gblong1 May 6, 2024
be8421c
fixed few issues, including revision
gblong1 May 6, 2024
9f78b4f
Adding LCM under my idsid
gblong1 May 8, 2024
5268dde
Updating LCM to use config.json and load blobs for NPU
gblong1 May 8, 2024
b91b87a
Updating setup to point to my private repo for testing.
gblong1 May 8, 2024
3179fab
Removed blob and swap flags, as they are no longer needed.
gblong1 May 8, 2024
d10e44f
Removed blob and swap flags, as they are no longer needed.
gblong1 May 9, 2024
c699c2d
Updated links in README.md
gblong1 May 9, 2024
32b3148
Removing current direcotry echo as not needed.
gblong1 May 13, 2024
b7d833a
Initial checkin of SD3 support
gblong1 May 13, 2024
8abb07a
Update power mode support checking. Still needs work, though...
gblong1 May 14, 2024
395a307
Fixing typo in MTL NPU arch naming
gblong1 May 22, 2024
100734b
Adding config file and code to download models from the revision
ymangukiya May 22, 2024
889caa1
Merge pull request #21 from intel-sandbox/updates_for_lnl_from_linux
gblong1 May 24, 2024
dad3f26
Updating model setup for LNL.
gblong1 May 24, 2024
c6c3ede
SAI Logo adding for SD3.0
gblong1 May 31, 2024
54e35d4
Merge pull request #22 from intel-sandbox/config_file_change_copy
gblong1 May 31, 2024
7ab626d
Merge branch 'main' into updates_for_lnl
gblong1 Jun 3, 2024
c680307
Bug fixes for Linux.
gblong1 Jun 4, 2024
10d199f
Merge pull request #23 from intel-sandbox/linux_config_bugfix
gblong1 Jun 4, 2024
250b129
Added default for config.json, and better dGPU handling
gblong1 Jun 4, 2024
cde12f4
trimming down plugin requirements
gblong1 Jun 5, 2024
2432f3c
Merge pull request #24 from intel-sandbox/json_config_update
arisha07 Jun 5, 2024
1224320
Pulling updates from opensource.
gblong1 Jun 6, 2024
65ee041
Rolled back SAI logo addition
gblong1 Jun 6, 2024
19ebb02
Moved spinner to avoid horizontal shifts in the UI. Moved the license…
gblong1 Jun 6, 2024
8ed5c02
Merge branch 'main' into updates_for_lnl
gblong1 Jun 6, 2024
7090c85
Update model_setup.py with spectral comment
gblong1 Jun 6, 2024
8c79db1
Update model_setup.py
gblong1 Jun 6, 2024
8a0ae77
Update model_setup.py
gblong1 Jun 6, 2024
759e7e8
Update model_setup.py
gblong1 Jun 6, 2024
c289fd1
Update model_setup.py
gblong1 Jun 6, 2024
e56b838
Update model_setup_config.json
gblong1 Jun 6, 2024
e05eb3a
fixed typo
gblong1 Jun 6, 2024
bce9a92
Removed repeated code.
gblong1 Jun 10, 2024
5df7d98
Merge pull request #26 from intel-sandbox/updates_for_lnl
gblong1 Jun 10, 2024
77d7320
Update for testing configs
gblong1 Jun 10, 2024
b20eec9
Fixed issues with platform detection.
gblong1 Jun 13, 2024
31cf094
fixing tab alignment
gblong1 Jun 13, 2024
85d798c
Fixing case issue with SD which was root cause of neg prompt still sh…
gblong1 Jun 13, 2024
fe783fe
update for merge to main.
gblong1 Jun 13, 2024
2c20ad3
Updating testcases
gblong1 Jun 13, 2024
4b4d77d
Merge pull request #27 from intel-sandbox/ww24_sync_to_main
gblong1 Jun 13, 2024
03870a5
removing unneeded files
gblong1 Jun 13, 2024
3f04cbf
Updated test case with all SD models.
gblong1 Jun 14, 2024
ab9ca61
Reduced redunant redundancies.
gblong1 Jun 14, 2024
5b05b22
Aligned around image instead of init_image to be consistent with othe…
gblong1 Jun 14, 2024
7a80509
Added more engine support
gblong1 Jun 14, 2024
ee1de8f
Added FP16 support for NPU
gblong1 Jun 15, 2024
6d165a4
fixing powermode ui logic
gblong1 Jun 15, 2024
56c4352
Merge pull request #28 from intel-sandbox/tc_update
gblong1 Jun 20, 2024
0bdaa97
Added Decoder info for LCM model.
gblong1 Jun 21, 2024
4bb464d
updating result naming to make comparing the same seed images easier.
gblong1 Jun 21, 2024
7e193af
Adding blob compilation to model setup
gblong1 Jun 23, 2024
7e6d226
remove key from model setup
gblong1 Jun 23, 2024
e0ebd6f
Removing chmod call for deprecated features.
gblong1 Jun 24, 2024
a385ec4
Merge pull request #30 from intel-sandbox/remove_deprecated_funcs_linux
gblong1 Jun 26, 2024
ee1b3d0
Merge pull request #29 from intel-sandbox/npu_support_for_sd_1.5_square
gblong1 Jun 26, 2024
3a13f17
update model_setup to compile 2T for Unet INT8
gblong1 Jun 26, 2024
8515ff4
Merge pull request #31 from intel-sandbox/npu_2t_config
gblong1 Jun 27, 2024
74970aa
add CLI options for model weights directory location
nschaper-intel Jun 28, 2024
35791c1
Merge pull request #34 from intel-sandbox/test_case_update
gblong1 Jun 29, 2024
e75a2f2
removed reliance on driver versions.
gblong1 Jul 8, 2024
c643db4
removed win32com which is no longer needed.
gblong1 Jul 8, 2024
a1e4feb
Merge pull request #35 from intel-sandbox/major_model_setup_update
gblong1 Jul 10, 2024
0c01582
Create README.md
gblong1 Jul 10, 2024
c67dfe9
Merge pull request #36 from intel-sandbox/add_sd_testcase_documenation
gblong1 Jul 10, 2024
5bb0565
Update README.md
gblong1 Jul 10, 2024
4e822f0
Model Loading and Compiling are multithreaded, mainly on SD1.5 INT8
spdumie Jul 22, 2024
188183e
Merge pull request #37 from siwooparkintel/multithreaded
gblong1 Jul 23, 2024
0276c0f
Merge WW30 Snapshot into Main (#38)
gblong1 Jul 25, 2024
4583b0b
Npu turbo feature (#40)
gblong1 Aug 13, 2024
15dae78
Fixing default steps and min guidance.
gblong1 Aug 13, 2024
ca53bca
Merge pull request #43 from intel-sandbox/issues_fix_41_42
gblong1 Aug 14, 2024
53dd559
Fix sys.path extend calls to for openvino_utils/tools folder
RyanMetcalfeInt8 Aug 14, 2024
f498763
Merge pull request #44 from intel-sandbox/fix_sys_paths
gblong1 Aug 15, 2024
1072301
WIP versions of the model management server / GUI
RyanMetcalfeInt8 Aug 16, 2024
951aa6a
model_manager UI: Get model details from server
RyanMetcalfeInt8 Aug 16, 2024
10c9a79
model manager ui: add install poll threads, and hook up progress bar
RyanMetcalfeInt8 Aug 21, 2024
34c8219
model manager: Add remaining model dl routines
RyanMetcalfeInt8 Aug 21, 2024
127a821
model manager: Implement install queueing
RyanMetcalfeInt8 Aug 21, 2024
1f3df10
model manager ui: Start progress bar thread if install is in progress…
RyanMetcalfeInt8 Aug 26, 2024
83fcd59
model manager ui: install cancellation
RyanMetcalfeInt8 Aug 26, 2024
f04bde1
Merge v2.99-R3 into MAIN (#48)
gblong1 Aug 27, 2024
885c6c9
model manager ui: Trigger update of SD model selection combo upon com…
RyanMetcalfeInt8 Aug 29, 2024
6647ef8
model management server: Refactor supported model / installable model…
RyanMetcalfeInt8 Aug 29, 2024
068c33a
model management server: Implement file download exclude patterns
RyanMetcalfeInt8 Aug 29, 2024
897eff1
stable diffusion: Populate the model select drop-down with model_list…
RyanMetcalfeInt8 Aug 29, 2024
78fc2a6
model manager: tweak model names
RyanMetcalfeInt8 Aug 29, 2024
4dc9b3f
stable diffusion: Display 'full' model name in model selection drop-down
RyanMetcalfeInt8 Aug 29, 2024
3a6bdbe
stable diffusion engine: swap deprecated download_tokenizer call to f…
RyanMetcalfeInt8 Aug 29, 2024
794fb4a
Merge branch 'main' into rdmetca/model_management_ui
RyanMetcalfeInt8 Aug 29, 2024
4e24e55
model management server: update SD3.0 entries
RyanMetcalfeInt8 Aug 29, 2024
ff3425d
Adding support for W8A16 model.
gblong1 Aug 29, 2024
49cb4c9
removing model which doesn't exist
gblong1 Aug 29, 2024
56422d9
Merge pull request #50 from intel-sandbox/add_W8A16_new
RyanMetcalfeInt8 Aug 29, 2024
aa10026
Merge branch 'main' into rdmetca/model_management_ui
RyanMetcalfeInt8 Aug 29, 2024
72a47c4
model manager server: Update model install routine based on latest ch…
RyanMetcalfeInt8 Aug 30, 2024
1a88f9c
model management ui: move ModelManagementWindow to dedicated .py
RyanMetcalfeInt8 Aug 30, 2024
e57d68d
model management server: Change name of OpenVINOModelInstaller class …
RyanMetcalfeInt8 Aug 30, 2024
6d8a2ad
model manager: Move ModelManager class to a dedicated .py
RyanMetcalfeInt8 Aug 30, 2024
c60e080
model manager: Trigger error window pop-up when model installation fails
RyanMetcalfeInt8 Aug 30, 2024
c64047a
model manager: Remove test entries from UI
RyanMetcalfeInt8 Aug 30, 2024
bde9843
model manager: Remove Portrait / Landscape options from UI installabl…
RyanMetcalfeInt8 Sep 3, 2024
a5b531e
model manager: Write installation info (hf repo id, commit-id) into i…
RyanMetcalfeInt8 Sep 3, 2024
97bcaf2
model manager: For sd_1.5_square_int8a16, confirm IR bin exists befor…
RyanMetcalfeInt8 Sep 3, 2024
e2d11b7
model manager: Remove unneceaary print statements, fix error dialog u…
RyanMetcalfeInt8 Sep 3, 2024
c242306
model_setup.py: Use an instance of ModelManager to populate user sele…
RyanMetcalfeInt8 Sep 4, 2024
c02a210
Update to install.bat to remove model setup
gblong1 Sep 17, 2024
4bf0ede
moving model install button to the left.
gblong1 Sep 17, 2024
c1887a9
SD selectable even without a layer present
RyanMetcalfeInt8 Sep 10, 2024
bc65e00
model manager: record NPU driver version used to compile blobs into i…
RyanMetcalfeInt8 Sep 17, 2024
5180b4d
model manager: Require install_info.json to be present for a model to…
RyanMetcalfeInt8 Sep 17, 2024
2f02f1e
model manager: 'Update' operation available for installed models that…
RyanMetcalfeInt8 Sep 17, 2024
3760e59
model manager: Fix undeclared full_install_path
RyanMetcalfeInt8 Sep 18, 2024
190e3cf
Updating install scripts and adding powershell.
gblong1 Sep 18, 2024
f694e06
Merge branch 'rdmetca/model_management_ui' of https://github.com/inte…
gblong1 Sep 18, 2024
9a82f1b
stable diffusion engine: Fix issue in int8a16 if all devices are 'GPU'
RyanMetcalfeInt8 Sep 18, 2024
bf5933f
GIMP-side stable diffusion plugin: Don't allow use of controlnet if n…
RyanMetcalfeInt8 Sep 18, 2024
18e54f0
Backing out error checking due to pip return codes.
gblong1 Sep 18, 2024
d6a84f3
Removing unneeded print.
gblong1 Sep 18, 2024
cf401ac
Merge branch 'rdmetca/model_management_ui' of http://github.com/intel…
gblong1 Sep 18, 2024
0955316
Fixed issue with dir existance. Fixed bug in python3 pointer.
gblong1 Sep 18, 2024
58b45a0
Adding missing imports.
gblong1 Sep 18, 2024
4938917
Removing unnecessary print
gblong1 Sep 18, 2024
82f0ee3
model manager: Explicitly tag install routines that have NPU compilat…
RyanMetcalfeInt8 Sep 18, 2024
e1898aa
Merge branch 'rdmetca/model_management_ui' of http://github.com/intel…
gblong1 Sep 18, 2024
adfe85f
fixed alignment bug in model_setup
gblong1 Sep 18, 2024
1507bbb
Fine tuning print messages
gblong1 Sep 18, 2024
9d7a977
Fixed Precision reported for LCM
gblong1 Sep 19, 2024
9f459c3
Fixed logic around power modes to ensure button sensitivity is correct.
gblong1 Sep 19, 2024
66abeb3
Removed commented out lines which were experiments.
gblong1 Sep 19, 2024
873e751
Move install_base_models routine from model_setup.py to complete_inst…
RyanMetcalfeInt8 Sep 19, 2024
9fc36aa
Merge remote-tracking branch 'gimp-ml-ov/rdmetca/model_management_ui'…
gblong1 Sep 19, 2024
9fdb831
Completing merge.
gblong1 Sep 19, 2024
b518b0d
model manager: Fix issue where an install entry doesn't show up in UI…
RyanMetcalfeInt8 Sep 19, 2024
dcb481a
Updated the readme and windows doc
arisha07 Sep 19, 2024
94c5bf9
Fixed format in user guide
arisha07 Sep 19, 2024
b619dd6
Fixed format in user guide
arisha07 Sep 19, 2024
5f3ea50
Remove int8 variants of inpainting, controlnet models
RyanMetcalfeInt8 Sep 19, 2024
cafe542
need to treat the path as a raw string to avoid unicode errors
gblong1 Sep 19, 2024
dca83e8
updated user guide for win
arisha07 Sep 19, 2024
166ddc9
Adding Stable Diffusion 3 guilde
gblong1 Sep 19, 2024
bccdba0
Fixed typo and added detail about install_info.json
gblong1 Sep 19, 2024
b476e5f
fixed a typo in the install_info.json
gblong1 Sep 19, 2024
89fdd06
Added command line model setup instructions in standalone readme:
arisha07 Sep 19, 2024
bcf676c
Fixed format in standalone readme
arisha07 Sep 19, 2024
1dc5261
Fixed format in standalone readme
arisha07 Sep 19, 2024
dc35821
Fixed format in standalone readme
arisha07 Sep 19, 2024
37443c9
Fixed format in standalone readme
arisha07 Sep 19, 2024
e29869a
Fixed format in standalone readme
arisha07 Sep 19, 2024
7886e42
Fixed format in standalone readme
arisha07 Sep 19, 2024
9d09535
updated figure in standalone readme
arisha07 Sep 19, 2024
c7fc8fd
Updating to support SD1.5 FP16 on Ultra Series 1 systems.
gblong1 Sep 20, 2024
9265e2b
Merge branch 'v2.99-R3-Release' of http://github.com/intel/openvino-a…
gblong1 Sep 20, 2024
cf138eb
model manager: Handle potential race condition in server startup / co…
RyanMetcalfeInt8 Sep 20, 2024
ded33ab
stable diffusion server: Add a retry mechanism for socket binding
RyanMetcalfeInt8 Sep 20, 2024
1f1d36c
stable diffusion server: Perform explicit close of the socket upon exit
RyanMetcalfeInt8 Sep 20, 2024
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
Binary file modified Docs/figs/gimp_load_model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Docs/figs/gimp_sd_ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/figs/stable-diffusion_model1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/figs/stable-diffusion_model2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/figs/stable-diffusion_model3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/figs/stable-diffusion_model4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/figs/standalone1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/figs/standalone2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions Docs/stable-diffusion-v3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Image generation with Stable Diffusion 3.0

Stable Diffusion V3 is next generation of latent diffusion image Stable Diffusion models family that outperforms state-of-the-art text-to-image generation systems in typography and prompt adherence, based on human preference evaluations.

In comparison with previous versions, it based on Multimodal Diffusion Transformer (MMDiT) text-to-image model that features greatly improved performance in image quality, typography, complex prompt understanding, and resource-efficiency.

More details about model can be found in [model card](https://huggingface.co/stabilityai/stable-diffusion-3-medium), [research paper](https://stability.ai/news/stable-diffusion-3-research-paper) and [Stability.AI blog post](https://stability.ai/news/stable-diffusion-3-medium).

## Enabling SD3 in GIMP
### Converting the Models
The supported version of SD3 in GIMP is the flash_sd3 LoRA. In order to use with GIMP, you first need to download and convert the model into OpenVINO format. This can be done by following the instructions in the [OpenVINO Stable Diffusion v3 Notebook](https://github.com/openvinotoolkit/openvino_notebooks/tree/latest/notebooks/stable-diffusion-v3).
>**Note**: Ensure you use the instructions for flash_sd3.

### Model Installation
After completing the steps in the notebook, you will have the models located in `openvino_notebooks\notebooks\stable-diffusion-v3\stable-diffusion-3`. Copy these models to `openvino-ai-plugins-gimp\weights\stable-diffusion-ov\stable-diffusion-3.0`

For example, using robocopy to copy the files on the command line:
```
robocopy openvino_notebooks\notebooks\stable-diffusion-v3\stable-diffusion-3\ %userprofile%\openvino-ai-plugins-gimp\weights\stable-diffusion-ov\stable-diffusion-3.0\. /mir
```
After copying, create a file called `install_info.json` inside the stable-diffusion-3.0 directory. This will ensure that the GIMP plugin will recognize this as a valid model. It should contain the following text:
```
{
"hf_repo_id": "none",
"hf_commit_id": "none"
}
```

Verify that the copied files and directory structure looks as follows:

![image](https://github.com/user-attachments/assets/039073d1-e593-4365-92c9-3555ea023670)
### Running with GIMP
After completing model installation steps, SD3 will now be available in the Stable Diffusion UI. Note that SD3 can generate valid images in as few as 4 iterations. Also, the guidance scale needed is normally much lower. See the screenshot below:
![image](https://github.com/user-attachments/assets/6daf3201-b873-4198-a752-19594f352c50)




56 changes: 27 additions & 29 deletions Docs/user_guide_for_windows_users.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ Please download [gimp-2.99.16-setup.exe](https://download.gimp.org/gimp/v2.99/wi
cd C:\Users\Public\
mkdir GIMP
cd GIMP

git clone https://github.com/intel/openvino-ai-plugins-gimp.git
git clone --branch v2.99-R3 https://github.com/intel/openvino-ai-plugins-gimp.git
```
> __Notes__:
> This is an example that will create a `GIMP` folder in `C:\Users\Public\`, and then download the package to `C:\Users\Public\GIMP`, you still can define where to place this package by yourself.
Expand All @@ -119,19 +118,7 @@ Please download [gimp-2.99.16-setup.exe](https://download.gimp.org/gimp/v2.99/wi

This step will take time for downloading necessary packages.


- After creating python environment, gimpenv3, and downloaded necessary packages, you will be prompted to download models
- Enter __\<number\>__ for downloading models you want to run. You can specify multiple models separated by spaces:

![](figs/model_downloding_SD1.5.png)

- Download "__1__", SD-1.5 Square (512x512) as an instance. Once installation process is completed when you see the messages below.

![](figs/download_SD1.5.png)

>**Notes:**
> - The downloaded models include FP16 and INT8 precision, and INT8 precision can be executed on MTL NPU.
> - Weights is saved at `C:\Users\<user_name>\openvino-ai-plugins-gimp\weights`.
- After creating python environment, gimpenv3, and downloaded necessary packages, you can now start GIMP application from Start Menu.

# Execute Stable-Diffusion in GIMP

Expand All @@ -143,18 +130,36 @@ With previous section, the GIMP AI plugins with OpenVINO™ Backend is installed

You can now simply open Gimp from the start menu as you would any normal Windows application.

## Execute Stable-Diffusion – SD1.5_square_int8
## Download & Install Stable Diffusion Models
- Once GIMP application is started, Click "__Layer__" \> "__OpenVINO-AI-Plugins__" \> "__Stable diffusion__".
- Once Stable Diffusion Plugin UI opens up, click on Model Button on the top left corner as show in the below picture:

Please follow below steps to execute Stable-Diffusion - SD1.5_square_int8. For other features, please refer to [OpenVINO™ Image Generator Plugin with Stable Diffusion](https://github.com/intel/openvino-ai-plugins-gimp/tree/main?tab=readme-ov-file#openvino-image-generator-plugin-with-stable-diffusion) section.
![](figs/stable-diffusion_model1.png)
- This now opens the Stable Diffusion Model Management window from where you can install the required models by clicking on "Install" button next to the model name.

- Following previous section to launch GIMP
![](figs/stable-diffusion_model2.png)

![](figs/gimp_launch.png)
- Download Stable Diffusion 1.5 Square as an instance.

- Click "__File__" \> "__New__" \> "__OK__" to new a layer in GIMP
![](figs/stable-diffusion_model3.png)

- Once installation process is completed, you will see the "Install" button is updated to "Installed" and you will find the models in the drop-down list

![](figs/gimp_create_image.png)
![](figs/gimp_ok.png)
![](figs/stable-diffusion_model4.png)

>**Notes:**
> - The downloaded models include FP16 and INT8 precision
> - Weights is saved at `C:\Users\<user_name>\openvino-ai-plugins-gimp\weights`.



## Execute Stable-Diffusion – Stable Diffusion 1.5 INT8

Please follow below steps to execute Stable-Diffusion - Stable Diffusion 1.5 INT8. For other features, please refer to [OpenVINO™ Image Generator Plugin with Stable Diffusion](https://github.com/intel/openvino-ai-plugins-gimp/tree/main?tab=readme-ov-file#openvino-image-generator-plugin-with-stable-diffusion) section.

- Following previous section to launch GIMP

![](figs/gimp_launch.png)

- Click "__Layer__" \> "__OpenVINO-AI-Plugins__" \> "__Stable diffusion__".

Expand All @@ -177,10 +182,3 @@ Please follow below steps to execute Stable-Diffusion - SD1.5_square_int8. For o
> - Balanced
> - If you wish to generate more images in single run, please modify the Number of Images section.

### Detail of Power Mode

| Power mode | Execution detail |
|----------:|:----------------|
| Best Performance | Text Device: GPU<br>Unet Device: GPU<br>Unet-Neg Device: GPU<br>VAE Device: GPU |
| Best Power Efficiency | Text Device: NPU<br>Unet Device: NPU<br>Unet-Neg Device: NPU<br>VAE Device: GPU |
| Balanced | Text Device: NPU<br>Unet Device: NPU<br>Unet-Neg Device: GPU<br>VAE Device: GPU |
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ For detailed steps and tips please refer to [Linux Installation Guide](./Docs/li
# OpenVINO™ Image Generator Plugin with Stable Diffusion
#### Power Mode is enabled for int8 SD models and systems that has a "NPU" only
#### A. Prompt to Image
1. Create or choose a layer
1. You can start with a blank canvas or create/choose a layer
2. Select Stable Diffusion from the drop down list in layers -> OpenVINO-AI-Plugins
3. Choose the desired model and device from the drop down list.
- note that the [Latent Consistency Model](https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7) is now supported. Choose `sd_1.5_square_lcm`
4. Click on "Load Models" to compile & load the model on the selected device. Wait for it to complete. Please note that you need to perform this step only if you change the model or device or both. For any subsequent runs just click "Run Inference"
3. Choose the desired Model and Power Mode from the drop down list.
4. Click on "Load Models" to compile & load the model on the device. Wait for it to complete. Please note that you need to perform this step only if you change the model or device or both. For any subsequent runs just click "Run Inference"
5. Enter prompt and other parameters
6. Click on “Generate”. Wait for the total inference steps to get completed.

Expand Down Expand Up @@ -81,13 +80,7 @@ For detailed steps and tips please refer to [Linux Installation Guide](./Docs/li
6. Click on “Generate”. Wait for the total inference steps to get completed.


![](gifs/stable-diffusion.png)

_With Advanced Setting_

![](gifs/stable-diffusion1.png)

_With Power Mode in Advanced Setting for SD int8 based models_
_With Advanced Setting and Power Mode_

![](gifs/stable-diffusion2.png)

Expand Down
Binary file modified gifs/stable-diffusion2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion gimpopenvino/complete_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,21 @@
import gimpopenvino
import platform
import subprocess
import shutil
from pathlib import Path
from openvino.runtime import Core

def install_base_models(base_model_dir, repo_weights_dir):
for folder in os.scandir(repo_weights_dir):
model = os.path.basename(folder)
model_path = os.path.join(base_model_dir, model)
if not os.path.isdir(model_path):
print("Copying {} to {}".format(model, base_model_dir))
shutil.copytree(Path(folder), model_path)

def setup_python_weights(install_location=None):
print("Setup done for base models")

def setup_python_weights(install_location=None, repo_weights_dir=None):
if not install_location:
install_location = os.path.join(os.path.expanduser("~"), "openvino-ai-plugins-gimp")

Expand All @@ -30,6 +41,9 @@ def setup_python_weights(install_location=None):
if not os.path.isdir(weight_path):
os.mkdir(weight_path)

if repo_weights_dir:
install_base_models(weight_path, repo_weights_dir)

step = 1
print("\n##########\n")
plugin_loc = os.path.dirname(gimpopenvino.__file__)
Expand Down
Loading