Skip to content

Commit 6037580

Browse files
authored
update nncf version (openvinotoolkit#1330)
1 parent 25f76d3 commit 6037580

File tree

13 files changed

+244
-34
lines changed

13 files changed

+244
-34
lines changed

.docker/Pipfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ librosa = ">=0.8.1"
2323
matplotlib = ">=3.4,<3.5.3"
2424
monai = ">=0.9.1,<1.0.0"
2525
nbval = "*"
26-
nncf = "==2.5.0"
26+
nncf = "==2.6.0"
2727
numpy = ">=1.21.0"
2828
onnx = ">=1.11.0"
2929
opencv-python = "*"

.docker/Pipfile.lock

+40-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

notebooks/110-ct-segmentation-quantize/110-ct-scan-live-inference.ipynb

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"metadata": {},
67
"source": [
@@ -37,10 +38,11 @@
3738
"metadata": {},
3839
"outputs": [],
3940
"source": [
40-
"%pip install -q \"openvino>=2023.1.0\" \"monai>=0.9.1,<1.0.0\""
41+
"%pip install -q \"openvino>=2023.1.0\" \"monai>=0.9.1,<1.0.0\" \"nncf>=2.5.0\""
4142
]
4243
},
4344
{
45+
"attachments": {},
4446
"cell_type": "markdown",
4547
"metadata": {},
4648
"source": [
@@ -69,6 +71,7 @@
6971
]
7072
},
7173
{
74+
"attachments": {},
7275
"cell_type": "markdown",
7376
"metadata": {},
7477
"source": [
@@ -129,6 +132,7 @@
129132
]
130133
},
131134
{
135+
"attachments": {},
132136
"cell_type": "markdown",
133137
"metadata": {},
134138
"source": [
@@ -288,6 +292,7 @@
288292
]
289293
},
290294
{
295+
"attachments": {},
291296
"cell_type": "markdown",
292297
"metadata": {},
293298
"source": [
@@ -336,6 +341,7 @@
336341
]
337342
},
338343
{
344+
"attachments": {},
339345
"cell_type": "markdown",
340346
"metadata": {
341347
"tags": []
@@ -356,6 +362,7 @@
356362
]
357363
},
358364
{
365+
"attachments": {},
359366
"cell_type": "markdown",
360367
"metadata": {},
361368
"source": [
@@ -391,6 +398,7 @@
391398
]
392399
},
393400
{
401+
"attachments": {},
394402
"cell_type": "markdown",
395403
"metadata": {},
396404
"source": [
@@ -423,6 +431,7 @@
423431
]
424432
},
425433
{
434+
"attachments": {},
426435
"cell_type": "markdown",
427436
"metadata": {},
428437
"source": [
@@ -462,6 +471,7 @@
462471
]
463472
},
464473
{
474+
"attachments": {},
465475
"cell_type": "markdown",
466476
"metadata": {},
467477
"source": [
@@ -501,6 +511,7 @@
501511
]
502512
},
503513
{
514+
"attachments": {},
504515
"cell_type": "markdown",
505516
"metadata": {},
506517
"source": [

notebooks/112-pytorch-post-training-quantization-nncf/112-pytorch-post-training-quantization-nncf.ipynb

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"metadata": {},
67
"source": [
@@ -35,6 +36,7 @@
3536
]
3637
},
3738
{
39+
"attachments": {},
3840
"cell_type": "markdown",
3941
"metadata": {},
4042
"source": [
@@ -49,7 +51,7 @@
4951
"source": [
5052
"# Install openvino package\n",
5153
"%pip install -q \"openvino>=2023.1.0\" torch torchvision\n",
52-
"%pip install -q \"git+https://github.com/openvinotoolkit/nncf.git@release_v260\""
54+
"%pip install -q \"nncf>=2.6.0\""
5355
]
5456
},
5557
{
@@ -98,6 +100,7 @@
98100
]
99101
},
100102
{
103+
"attachments": {},
101104
"cell_type": "markdown",
102105
"metadata": {},
103106
"source": [
@@ -139,6 +142,7 @@
139142
]
140143
},
141144
{
145+
"attachments": {},
142146
"cell_type": "markdown",
143147
"metadata": {},
144148
"source": [
@@ -197,6 +201,7 @@
197201
]
198202
},
199203
{
204+
"attachments": {},
200205
"cell_type": "markdown",
201206
"metadata": {},
202207
"source": [
@@ -253,6 +258,7 @@
253258
]
254259
},
255260
{
261+
"attachments": {},
256262
"cell_type": "markdown",
257263
"metadata": {},
258264
"source": [
@@ -326,6 +332,7 @@
326332
]
327333
},
328334
{
335+
"attachments": {},
329336
"cell_type": "markdown",
330337
"metadata": {},
331338
"source": [
@@ -388,6 +395,7 @@
388395
]
389396
},
390397
{
398+
"attachments": {},
391399
"cell_type": "markdown",
392400
"metadata": {},
393401
"source": [
@@ -423,6 +431,7 @@
423431
]
424432
},
425433
{
434+
"attachments": {},
426435
"cell_type": "markdown",
427436
"metadata": {},
428437
"source": [
@@ -487,6 +496,7 @@
487496
]
488497
},
489498
{
499+
"attachments": {},
490500
"cell_type": "markdown",
491501
"metadata": {},
492502
"source": [
@@ -495,6 +505,7 @@
495505
]
496506
},
497507
{
508+
"attachments": {},
498509
"cell_type": "markdown",
499510
"metadata": {},
500511
"source": [
@@ -532,6 +543,7 @@
532543
]
533544
},
534545
{
546+
"attachments": {},
535547
"cell_type": "markdown",
536548
"metadata": {},
537549
"source": [
@@ -541,6 +553,7 @@
541553
]
542554
},
543555
{
556+
"attachments": {},
544557
"cell_type": "markdown",
545558
"metadata": {},
546559
"source": [
@@ -567,6 +580,7 @@
567580
]
568581
},
569582
{
583+
"attachments": {},
570584
"cell_type": "markdown",
571585
"metadata": {},
572586
"source": [
@@ -609,6 +623,7 @@
609623
]
610624
},
611625
{
626+
"attachments": {},
612627
"cell_type": "markdown",
613628
"metadata": {},
614629
"source": [
@@ -643,13 +658,15 @@
643658
]
644659
},
645660
{
661+
"attachments": {},
646662
"cell_type": "markdown",
647663
"metadata": {},
648664
"source": [
649665
"It should be noted that the inference time for the quantized PyTorch model is longer than that of the original model, as fake quantizers are added to the model by NNCF. However, the model's performance will significantly improve when it is in the OpenVINO Intermediate Representation (IR) format."
650666
]
651667
},
652668
{
669+
"attachments": {},
653670
"cell_type": "markdown",
654671
"metadata": {},
655672
"source": [
@@ -725,6 +742,7 @@
725742
]
726743
},
727744
{
745+
"attachments": {},
728746
"cell_type": "markdown",
729747
"metadata": {},
730748
"source": [
@@ -771,6 +789,7 @@
771789
]
772790
},
773791
{
792+
"attachments": {},
774793
"cell_type": "markdown",
775794
"metadata": {},
776795
"source": [
@@ -845,6 +864,7 @@
845864
]
846865
},
847866
{
867+
"attachments": {},
848868
"cell_type": "markdown",
849869
"metadata": {},
850870
"source": [
@@ -934,6 +954,7 @@
934954
]
935955
},
936956
{
957+
"attachments": {},
937958
"cell_type": "markdown",
938959
"metadata": {},
939960
"source": [

0 commit comments

Comments
 (0)