Skip to content

Commit b0271b7

Browse files
authored
Merge pull request #310 from frenchwr/2.99-openvino
2 parents c102caf + 9a01d30 commit b0271b7

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

.github/plug-declaration.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"personal-files": { "allow-installation": "true" }
3+
}

README.md

+3-13
Original file line numberDiff line numberDiff line change
@@ -114,26 +114,16 @@ This snap contains support for AI plugins running on Intel hardware (CPU, GPU, a
114114
sudo snap connect gimp:npu-libs intel-npu-driver:npu-libs
115115
sudo snap connect gimp:openvino-libs openvino-toolkit-2404:openvino-libs
116116
sudo snap connect gimp:openvino-ai-plugins-gimp-libs openvino-ai-plugins-gimp:openvino-ai-plugins-gimp-libs
117+
sudo snap connect gimp:dot-local-share-openvino-ai-plugins-gimp
117118
```
118119

119-
4. (Optional) Install stable diffusion models. Models for the other plugins are relatively small so are built into the snap, while the stable diffusion models are each on the order of GBs and therefore downloaded to a user's home directory via a `model-setup` command line tool.
120-
121-
First connect the snap interfaces for the `model-setup` application:
122-
123-
```shell
124-
sudo snap connect openvino-ai-plugins-gimp:home
125-
sudo snap connect openvino-ai-plugins-gimp:openvino-libs openvino-toolkit-2404:openvino-libs
126-
sudo snap connect openvino-ai-plugins-gimp:intel-npu intel-npu-driver:intel-npu
127-
sudo snap connect openvino-ai-plugins-gimp:npu-libs intel-npu-driver:npu-libs
128-
```
129-
130-
Now run the application:
120+
4. (Optional) Install stable diffusion models. Models for the other plugins are relatively small so are built into the snap, while the stable diffusion models are each on the order of GBs and therefore downloaded to a user's home directory at `~/.local/share/openvino-ai-plugins-gimp` via one of two methods: a `model-setup` command-line tool or from within the GIMP application. To run the interactive command-line tool:
131121
132122
```shell
133123
openvino-ai-plugins-gimp.model-setup
134124
```
135125
136-
Note this will install models in your home directory at `~/openvino-ai-plugins-gimp`. To adjust the path set the `GIMP_OPENVINO_MODELS_PATH` shell variable to a different non-hidden location in your home directory.
126+
Alternatively, users may download models from within GIMP by clicking "Model" in the top-left of the stable diffusion dialog window (Layer -> OpenVINO-AI-Plugins -> Stable Diffusion).
137127
138128
5. Run `gimp` like normal. Instructions for using the OpenVINO AI plugins within GIMP can be found in the [upstream GitHub repo](https://github.com/intel/openvino-ai-plugins-gimp).
139129

snap/snapcraft.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ plugs:
4848
interface: content
4949
content: openvino-ai-plugins-gimp-2404
5050
target: $SNAP/openvino-ai-plugins-gimp
51+
dot-local-share-openvino-ai-plugins-gimp:
52+
interface: personal-files
53+
write:
54+
- $HOME/.local/share/openvino-ai-plugins-gimp
5155

5256
environment:
5357
GI_TYPELIB_PATH: $SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/gjs/girepository-1.0:$GI_TYPELIB_PATH
@@ -75,6 +79,7 @@ apps:
7579
- npu-libs
7680
- openvino-libs
7781
- openvino-ai-plugins-gimp-libs
82+
- dot-local-share-openvino-ai-plugins-gimp
7883

7984
parts:
8085
babl:
@@ -257,15 +262,15 @@ parts:
257262
plugin: dump
258263
source-type: git
259264
source: https://github.com/canonical/openvino-toolkit-snap.git
260-
source-branch: openvino-toolkit-2404
265+
source-tag: 2024.5.0-0
261266
stage:
262267
- command-chain/openvino-launch
263268

264269
command-chain-openvino-ai-plugins-gimp:
265270
plugin: dump
266271
source-type: git
267272
source: https://github.com/canonical/openvino-ai-plugins-gimp-snap.git
268-
source-branch: frenchwr/create-snap # TODO: update to stable branch
273+
source-commit: 7d20266d73ba25cd49aae55f0a2157911fb6bc75 # TODO: update to tagged release once upstream branch merged
269274
stage:
270275
- command-chain/openvino-ai-plugins-gimp-launch
271276

0 commit comments

Comments
 (0)