Skip to content

Commit b83d52c

Browse files
authored
Merge pull request #198 from intel/development
Development
2 parents 17ce79a + 14c7e09 commit b83d52c

File tree

4 files changed

+13
-117
lines changed

4 files changed

+13
-117
lines changed

gimpopenvino/plugins/openvino_utils/tools/model_manager.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,6 @@
301301

302302
access_token = None
303303

304-
NPU_THRESHOLD = 43000
305-
306304
def does_filename_match_patterns(filename, patterns):
307305
for pattern in patterns:
308306
if fnmatch.fnmatch(filename, pattern):
@@ -386,8 +384,9 @@ def get_npu_driver_version(core):
386384
def get_npu_config(core, architecture):
387385
try:
388386
if architecture == NPUArchitecture.ARCH_4000:
389-
gops_value = core.get_property("NPU", "DEVICE_GOPS")[ov.Type.i8]
390-
return 6 if gops_value > NPU_THRESHOLD else None
387+
return core.get_property("NPU", "NPU_MAX_TILES")
388+
else:
389+
return None
391390
except Exception as e:
392391
logging.error(f"Error retrieving NPU configuration: {str(e)}")
393392
return None
@@ -1219,8 +1218,9 @@ def dl_sd_15_square(self, model_id, only_npu_recompilation=False):
12191218
config = None
12201219
logging.info(f"Creating NPU model for {model_name}")
12211220

1222-
if "unet_int8" in model_name or "unet_bs1" in model_name:
1223-
config = { "NPU_DPU_GROUPS" : npu_config, "NPU_MAX_TILES": npu_config } if npu_config is not None else None
1221+
if "unet" in model_name:
1222+
config = { "NPU_COMPILATION_MODE_PARAMS" : "performance-hint-override=latency" }
1223+
12241224

12251225
if "unet_int8" not in model_name:
12261226
model_path_fp16 = os.path.join(install_location, model_fp16, model_name + ".xml")

gimpopenvino/plugins/stable_diffusion_ov/stable_diffusion_ov.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,13 +1140,13 @@ def do_create_procedure(self, name):
11401140

11411141
# procedure.add_argument_from_property(self, "initial_image")
11421142
procedure.add_int_argument("num_images",_("_Number of Images (Default:1)"),
1143-
"Number of Images to generate", 1, 50, 1,
1143+
"Number of Images to generate", 1, 200, 1,
11441144
GObject.ParamFlags.READWRITE)
11451145
procedure.add_int_argument("num_infer_steps",_("_Number of Inference steps (Default:20)"),
1146-
"Number of Inference steps (Default:20)", 1, 50, 20,
1146+
"Number of Inference steps (Default:20)", 1, 200, 20,
11471147
GObject.ParamFlags.READWRITE)
11481148
procedure.add_int_argument("num_infer_steps_turbo",_("_Number of Inference steps (Default:2)"),
1149-
"Number of Inference steps (Default:2)", 1, 50, 2,
1149+
"Number of Inference steps (Default:2)", 1, 200, 2,
11501150
GObject.ParamFlags.READWRITE)
11511151
procedure.add_double_argument("guidance_scale",_("_Guidance Scale (Default:7.5)"),
11521152
"Guidance Scale (Default:7.5)", 0.0, 20.0, 7.5,

install.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if /i "%script_dir%"=="%current_dir%" (
3434
echo **** openvino-ai-plugins-gimp Setup started ****
3535

3636
REM Create a virtual environment
37-
python -m venv gimpenv3
37+
call python -m venv gimpenv3
3838

3939
call "gimpenv3\Scripts\activate"
4040

requirements.txt

Lines changed: 3 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,5 @@
1-
accelerate==0.33.0
2-
aiohappyeyeballs==2.6.1
3-
aiohttp==3.11.18
4-
aiosignal==1.3.2
5-
altair==5.5.0
6-
attrs==25.3.0
7-
beautifulsoup4==4.13.4
8-
blinker==1.9.0
9-
cachetools==5.5.2
10-
certifi==2025.4.26
11-
charset-normalizer==3.4.2
12-
click==8.2.0
13-
colorama==0.4.6
14-
contourpy==1.3.2
15-
controlnet-aux==0.0.9
16-
cycler==0.12.1
17-
datasets==3.6.0
18-
diffusers==0.33.1
19-
dill==0.3.8
20-
einops==0.8.0
21-
filelock==3.18.0
22-
fire==0.6.0
23-
fonttools==4.58.0
24-
frozenlist==1.6.0
25-
fsspec==2025.3.0
26-
ftfy==6.2.3
27-
gdown==5.2.0
28-
gitdb==4.0.12
29-
GitPython==3.1.44
30-
huggingface-hub==0.31.4
31-
idna==3.10
32-
imageio==2.37.0
33-
importlib_metadata==8.7.0
34-
intel-openmp==2021.4.0
35-
Jinja2==3.1.6
36-
jsonschema==4.23.0
37-
jsonschema-specifications==2025.4.1
38-
kiwisolver==1.4.8
39-
lazy_loader==0.4
40-
markdown-it-py==3.0.0
41-
MarkupSafe==3.0.2
42-
matplotlib==3.10.3
43-
mdurl==0.1.2
44-
mkl==2021.4.0
45-
mpmath==1.3.0
46-
multidict==6.4.4
47-
multiprocess==0.70.16
48-
narwhals==1.40.0
49-
networkx==3.4.2
50-
numpy==1.26.4
51-
opencv-python==4.11.0.86
52-
opencv-python-headless==4.11.0.86
53-
openvino==2025.1.0
54-
openvino-genai==2025.1.0.0
55-
openvino-telemetry==2025.1.0
56-
openvino-tokenizers==2025.1.0.0
1+
openvino==2025.2.0
2+
openvino-genai==2025.2.0.0
573
optimum==1.25.3
584
optimum-intel @ git+https://github.com/huggingface/optimum-intel.git@dba7dced0145b539bb0563e5d5741d00daeb8025
59-
packaging==24.2
60-
pandas==2.2.3
61-
peft==0.12.0
62-
pillow==10.4.0
63-
propcache==0.3.1
64-
protobuf==5.27.3
65-
psutil==7.0.0
66-
pyarrow==20.0.0
67-
pydeck==0.9.1
68-
Pygments==2.19.1
69-
pyparsing==3.2.3
70-
PySocks==1.7.1
71-
python-dateutil==2.9.0.post0
72-
pytz==2025.2
73-
PyYAML==6.0.2
74-
referencing==0.36.2
75-
regex==2024.11.6
76-
requests==2.32.3
77-
rich==13.9.4
78-
rpds-py==0.25.0
79-
safetensors==0.4.4
80-
scikit-image==0.25.2
81-
scipy==1.15.3
82-
sentencepiece==0.2.0
83-
setuptools==80.7.1
84-
six==1.17.0
85-
smmap==5.0.2
86-
soupsieve==2.7
87-
streamlit==1.37.1
88-
sympy==1.14.0
89-
tbb==2021.13.1
90-
tenacity==8.5.0
91-
termcolor==3.1.0
92-
tifffile==2025.5.10
93-
timm==0.4.5
94-
tokenizers==0.21.1
95-
toml==0.10.2
96-
torch==2.7.0
97-
torchvision==0.22.0
98-
tornado==6.5
99-
tqdm==4.66.5
100-
transformers==4.51.3
101-
typing_extensions==4.13.2
102-
tzdata==2025.2
103-
urllib3==2.4.0
104-
watchdog==4.0.2
105-
wcwidth==0.2.13
106-
xxhash==3.5.0
107-
yarl==1.20.0
108-
zipp==3.21.0
109-
5+
peft

0 commit comments

Comments
 (0)