Closed Bobcatie closed 7 months ago
Hi @Bobcatie -
Im starting a new issue as i have managed to successfully install openvino but im still having some difficulty following the Linux instructions
This plugin is tested on Ubuntu 22.04. Building GIMP from source is recommended.
- Install Dependencies
this direction is very clear.
- Clone, build, and install babl
- Clone, build, and install gegl
- Clone, build, and install Gimp
Are the packages nested or are they all built in the downloads folder?
You should clone them each to their own directory, but they don't need to be in a specific directory. Since you are building from source, the sudo ninja -C _build install
step should place the libraries in the correct places in the Linux filesystem.
- Install Plugins Clone this repo git clone https://github.com/intel/openvino-ai-plugins-gimp.git
Where should this repo be placed? Nested or in the downloads folder?
Again, it depends on your preference. You can put them anywhere you want. In general, they shouldn't be nested under any other cloned directory (good for keeping projects separate). I, personally, would create a gimp folder under $HOME, and then clone everything there at the same level. It all depends on how you like to have your filesystem organized.
Setup the environment Note that you will need to do these steps everytime you start GIMP source /opt/intel/openvino/setupvars.sh export GI_TYPELIB_PATH=/usr/lib/x86_64-linux-gnu/girepository-1.0:/usr/local/lib/x86_64-linux-gnu/girepository-1.0
From which directory location should you run both of these commands?
Because the full path is specified, you can run them from any location. They are setting the environment for your terminal.
Run install script, and download models. The following steps will create the virtual environment "gimpenv3", install all required packages and will also walk you through models setup. chmod +x openvino-ai-plugins-gimp/install.sh source /opt/intel/openvino/setupvars.sh ./openvino-ai-plugins-gimp/install.sh
Again from which directory location should you run both of these commands?
You should run this from the directory where you cloned this repository. For example, if you created a /home/u/gimp
directory and cloned the repo there, you would now have /home/u/gimp/openvino-ai-plugins-gimp
directory. So the commands above would run from /home/u/gimp
directory.
Full example:
cd $HOME
mkdir gimp
cd ./gimp
git clone http://github.com/intel/openvino-ai-plugins-gimp
chmod +x ./openvino-ai-plugins-gimp/install.sh
./openvino-ai-plugins-gimp/install.sh
You will be prompted to setup the AI models used with OpenVINO™. Choose the models that you would like to setup, keeping in mind that choosing to download all of them may take time and considerable disk space. You can re-run "run install script" step later again to install & setup models that you may have missed.
what are the necessary models needed to install@
This depends on what versions of Stable Diffusion you want to run. If you choose all, they will be installed under $HOME/openvino-ai-plugins-gimp/weights/stable-diffusion-ov
I ened up selecting all and here is the list of contents inside a folder called "Downloads/gimpenv3/lib/python3.10/site-packages"
These are the python packages, not the stable diffusion models.
Start the GIMP application (gimp-2.99), and add the gimpenv3 path that was printed when running the above step to the list of plugin folders [Edit-> Preferences-> Folders-> Plugins].
Which folder should I point to? my installation had many locations printed. I tried "/Downloads/gimpenv3/lib/python3.10/site-packages/gimpopenvino/plugins"
That looks correct.
Restart GIMP, and you should see 'OpenVINO-AI-Plugins' show up in 'Layer' menu
Im not seeing anything.
Please double check that you ran the
source /opt/intel/openvino/setupvars.sh
export GI_TYPELIB_PATH=/usr/lib/x86_64-linux-gnu/girepository-1.0:/usr/local/lib/x86_64-linux-gnu/girepository-1.0
gimp-2.99
What are these commands for?
These commands setup the openvino environment, and set the TYPELIB path so that GIMP can correctly display the plugin UI.
EDIT: Formatting
Hi @Bobcatie - hopefully you were able to resolve your issues. Let me know if you have any additional problems and we can help you out.
Im starting a new issue as i have managed to successfully install openvino but im still having some difficulty following the Linux instructions
this direction is very clear.
Are the packages nested or are they all built in the downloads folder?
Where should this repo be placed? Nested or in the downloads folder?
From which directory location should you run both of these commands?
Again from which directory location should you run both of these commands?
what are the necessary models needed to install@
I ened up selecting all and here is the list of contents inside a folder called "Downloads/gimpenv3/lib/python3.10/site-packages"
Which folder should I point to? my installation had many locations printed. I tried "/Downloads/gimpenv3/lib/python3.10/site-packages/gimpopenvino/plugins"
Im not seeing anything.
What are these commands for?