You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1] Provides a set of OpenVino based plugins that add AI features to GIMP. <br>
@@ -26,14 +26,26 @@ Please raise a PR for any new features, modifactions or bug fixes.
26
26
## Installation Steps
27
27
28
28
### Windows
29
+
Skip steps 1 and 2 if you already have Python3 and Git on Windows
30
+
31
+
#### 1. Install Python
32
+
- Download a Python installer from python.org. Choose Python 3.7, 3.8, 3.9 or 3.10 and make sure to pick a 64 bit version. For example, this 3.8 installer: https://www.python.org/ftp/python/3.8.8/python-3.8.8-amd64.exe <br>
33
+
- Double click on the installer to run it, and follow the steps in the installer. Check the box to add Python to your PATH, and to install py. At the end of the installer, there is an option to disable the PATH length limit. It is recommended to click this. <br>
34
+
35
+
#### 2. Install Git
36
+
- Download and install [GIT](https://git-scm.com/)
- run install script - this will create the virtual environment "gimpenv3", install all required packages and will also walk you through models setup. <br>
36
47
```openvino-ai-plugins-gimp\install.bat``` <br>
48
+
*You can re-run "run install script" step later again to install & setup models that you may have missed.* <br>
37
49
38
50
3. Start the GIMP application, and add the gimpenv3 path that was printed when running the above step to the list of plugin folders [Edit-> Preferences-> Folders-> Plugins]. <br>
39
51
Example: ```Plug-ins in GIMP : <path\to>\gimpenv3\lib\site-packages\gimpopenvino\plugins``` Add this path to [Edit-> Preferences-> Folders-> Plugins] in GIMP <br>
@@ -47,20 +59,38 @@ Please raise a PR for any new features, modifactions or bug fixes.
# run install script - this will create the virtual environment "gimpenv3", install all required packages and will also walk you through models setup
62
+
# run install script - this will create the virtual environment "gimpenv3", install all required packages and will also walk you through models setup.
51
63
openvino-ai-plugins-gimp/install.sh
52
64
```
65
+
*You can re-run "run install script" step later again to install & setup models that you may have missed.* <br>
66
+
53
67
3. Start the GIMP application (```flatpak run org.gimp.GIMP```), and add the gimpenv3 path that was printed when running the above step to the list of plugin folders [Edit-> Preferences-> Folders-> Plugins]. <br>
54
68
4. Restart GIMP, and you should see 'OpenVINO-AI-Plugins' show up in 'Layer' menu <br>
55
69
56
70
### OpenVINO™ Image Generator Plugin with Stable Diffusion - This GIF doesn't represent the current GUI
71
+
#### A. Prompt to Image
57
72
1. Create or choose a layer <br>
58
73
2. Select Stable Diffusion from the drop down list in layers -> OpenVINO-AI-Plugins <br>
59
74
3. Choose the desired model and device from the drop down list.<br>
60
75
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" <br>
61
-
3. Enter prompt and other parameters <br>
62
-
4. Click on “Run Inference”. Wait for the total inference steps to get completed. <br>
63
-
6. If create gif option is selected, please note that performance will reduce. The generated gif is located in below path. You can play it in GIMP by going to Filters -> Animations -> Playback <br>
76
+
5. Enter prompt and other parameters <br>
77
+
6. Click on “Run Inference”. Wait for the total inference steps to get completed. <br>
78
+
79
+
#### B. Image to Image
80
+
1. Create or choose a layer or open an image <br>
81
+
2. Follow steps 2,3,4,5 from section A. <br>
82
+
3. Select "Use Initial Image"
83
+
4. By default the opened image in canvas will be used as initial image to the model. You can also select a different image by browsing from files.
84
+
5. Click on “Run Inference”. Wait for the total inference steps to get completed. <br>
85
+
86
+
#### C. Stable-Diffusion-1.5 Inpainting - Make sure to download and convert the model during install process.
87
+
1. Choose a layer or Open an image of size 512x512. (Currently works best with this resolution) <br>
88
+
2. Use "Free select tool" to select the area in your image that you wish to change. <br>
89
+
3. Right click on you image and click on "Add layer mask". Then choose "Selection" in "Initalize layer Mask to". This should create a mask with your selection.
90
+
4. Follow steps 2,3,4,5 from section A. Please note that you will only see "SD_1.5_Inpainting" in model options if you added a mask layer to your image. <br>
91
+
5. Click on “Run Inference”. Wait for the total inference steps to get completed. <br>
92
+
93
+
*If create gif option is selected, please note that performance will reduce. The generated gif is located in below path. You can play it in GIMP by going to Filters -> Animations -> Playback* <br>
0 commit comments