-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Set config and model paths dynamically from environment vars Signed-off-by: Will French <[email protected]> * Centralizing ENV VARs into tools_utils. * Fixing default path. * fixing test for python executable logic * Adding threading to SR to avoid not responding messages. * removing debug statement * Improvements to ease packaging work on Linux (#156) * Allow model_setup to be run from any directory * Store plugin scripts with executable permissions * Remove typing as it ships with stdlib since python 3.5 * Install plugin files with executable permissions preserved * Revert data_files addition to avoid complexity * Install plugins from source repo instead of venv * Revert permissions changes to test failure inside snap * Initial update of SR to GIMP 3.0. * Updating Save Image to work with GIMP 3.0 * Removing unneeded comments. * Initial update of Segmentation to GIMP 3.0 * Removing uneeded files. * Updating install path * Moving to latest OpenVINO - 2024.6.0 * removing unneeded log.info calls. * Updating proc id for GIMP 3.0 * Updating plugin version number * Initial update of SD to GIMP 3.0 * Updating option caching in SD. * removed files that are no longer used. * Implemented SDOptionCache to address issues with options being saved run-to-run. * Removed debug prints, unneeded syspath extention * remove commented syspath line * Adding version support for plugins. * updated install flow. removed need to call complete_install separately. * Hiding console for SR and SS. SD is still WIP * removed .json config, as it should be created from scratch everytime. * restored alignment of OV logo. * Updated NPU Arch logic to support next gen NPUs * Updated NPU Arch logic to support next gen NPUs * update ARCH_NEXT and tweak logic * Fixed NPU Arch logic to work correctly. * Add check for dNPU to avoid NPU turbo enabling exception for those devices * workaround for 3700 series being reported incorrectly in OV2024.5+ * restore running complete_install post setup * update tools_utils import * subprocess call is diff for Linux vs Windows * Removing import of install_utils. It relies on importing openvino, which was causing issues in Linux for some reason. For now, we are have the get_plugin_version code duplicated here. Need to find a way to remove it in the future. * Longer timeout needed for some systems. * Updating title bar to show just the plugin version. * updating process name to work with Linux * Adding linux support for BIOS discovery * Really fixing issue #158 this time. * Updating linux build docs * fixing issue with ENV var installation and commandline model installs. * Updating download links for GIMP3 RC2 * Updating figure for GIMP3 RC2 * Updating setup complete figure for GIMP3 RC2 * Updates for Docs and Figures for GIMP 3.0 --------- Signed-off-by: Garth Long <[email protected]> Signed-off-by: Will French <[email protected]> Co-authored-by: Will French <[email protected]> Co-authored-by: Ryan Metcalfe <[email protected]>
- Loading branch information
1 parent
e7395e3
commit 6c5284c
Showing
50 changed files
with
1,045 additions
and
1,313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
|
||
|
||
# Using Stable Diffusion in GIMP | ||
|
||
After installing GIMP and the GIMP AI plugins with OpenVINO™, you can now start GIMP application from Start Menu on Windows, or from the Application Launcher in Ubuntu. | ||
|
||
>Notes: This section runs `SD-1.5 Square (512x512)` as an example. | ||
## 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: | ||
|
||
![](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. | ||
|
||
![](figs/stable-diffusion_model2.png) | ||
|
||
- Download Stable Diffusion 1.5 Square as an instance. | ||
|
||
![](figs/stable-diffusion_model3.png) | ||
|
||
- You can select multiple models at once, and the Model Manager will queue them for installation. | ||
|
||
![](figs/stable-diffusion_model3_1.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/stable-diffusion_model4.png) | ||
|
||
>**Notes:** | ||
> - The downloaded models include INT8, INT8A16, and FP16 precision | ||
> - Weights is saved at `C:\Users\<user_name>\openvino-ai-plugins-gimp\weights`. | ||
|
||
|
||
## Execute Stable-Diffusion – Stable Diffusion 1.5 INT8A16 | ||
|
||
Please follow below steps to execute Stable-Diffusion - Stable Diffusion 1.5 INT8A16. 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__". | ||
|
||
![](figs/gimp_execute_SD.png) | ||
|
||
- Change the selected fields to set "Stable Diffusion" configuration and choose the desired "Power Mode" you want, then click "Load Models" to the load models into the target devices based on your power mode selection. | ||
|
||
![](figs/gimp_load_model.png) | ||
|
||
> **Notes:** It takes time in this step. | ||
- Finally, you can optionally enter any text or changes the parameters in the selected field, then click "Generate" to generate image. | ||
|
||
![](figs/gimp_sd_ui.png) | ||
|
||
>**Notes:** | ||
> - Only Intel® devices are supported (CPU, NPU, integraged GPU, Intel® discrete GPUs) | ||
> - Power Mode is now enabled- Users can select between the following options depending on their use case: | ||
> - Best Performance | ||
> - Best Power Efficiency | ||
> - Balanced | ||
> - If you wish to generate more images in single run, please modify the Number of Images section. | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
include gimpopenvino/plugins/openvino_utils/images/plugin_logo.png | ||
include gimpopenvino/plugins/openvino_utils/images/error_icon.png | ||
include gimpopenvino/plugins/openvino_utils/tools/gimp_openvino_config.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.