Skip to content

Commit

Permalink
spell check and meta
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova committed Feb 28, 2024
1 parent 7ba2c73 commit 53706f5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 181 deletions.
3 changes: 3 additions & 0 deletions .ci/spellcheck/.pyspelling.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ CVPR
Databricks
databricks
dataloader
dataloaders
DataLoader
DataLoaders
DataModule
Expand Down Expand Up @@ -232,6 +233,7 @@ Gb
gcc
GEC
GELU
GELAN
Gemma
gemma
genai
Expand Down Expand Up @@ -505,6 +507,7 @@ Patil
PEFT
performant
PersonaGPT
PGI
PhotoMaker
photorealism
photorealistic
Expand Down
199 changes: 18 additions & 181 deletions notebooks/287-yolov9-optimization/287-yolov9-optimization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
"from PIL import Image\n",
"from utils.augmentations import letterbox\n",
"\n",
"image_url = \"https://farm3.staticflickr.com/2111/2386947661_34dbdb343c_z.jpg\"\n",
"image_url = \"https://github.com/openvinotoolkit/openvino_notebooks/assets/29454499/7b6af406-4ccb-4ded-a13d-62b7c0e42e96\"\n",
"download_file(image_url, directory=DATA_DIR, filename=\"test_image.jpg\", show_progress=True)\n",
"\n",
"def preprocess_image(img0: np.ndarray):\n",
Expand Down Expand Up @@ -553,7 +553,7 @@
"from utils.general import colorstr\n",
"\n",
"# read dataset config\n",
"DATA_CONFIG = 'data/coco.yaml'\n",
"DATA_CONFIG = data/coco.yaml'\n",
"with open(DATA_CONFIG) as f:\n",
" data = yaml.load(f, Loader=yaml.SafeLoader)\n",
"\n",
Expand Down Expand Up @@ -717,7 +717,7 @@
],
"source": [
"quantized_model = nncf.quantize(ov_model, quantization_dataset, preset=nncf.QuantizationPreset.MIXED)\n",
"ov_int8_model_path = MODEL_DIR / weights.name.replace(\".pt\", \"_int8_openvino_model\") / weights.name.replace(\".pt\", \"_int8.xml\")\n",
"ov_int8_model_path = MODEL_DIR / weights.name.replace(\".pt\", \"_int8_openvino_model\") / weights.name.replace(\".pt\", \"_int8.xml\")\n",
"yaml_save(ov_int8_model_path.parent / weights.name.replace(\".pt\", \"_int8.yaml\"), metadata)\n",
"\n",
"ov.save_model(quantized_model, ov_int8_model_path)"
Expand Down Expand Up @@ -1201,186 +1201,23 @@
"pygments_lexer": "ipython3",
"version": "3.8.10"
},
"openvino_notebooks": {
"imageUrl": "https://github.com/openvinotoolkit/openvino_notebooks/assets/29454499/ae3a7653-eead-4c41-9cad-a7c95d3a4578",
"tags": {
"categories": [
"Model Demos",
"AI Trends"
],
"libraries": [],
"other": [],
"tasks": [
"Object Detection"
]
}
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {
"02328f0f2f4b4cb6a7daaf7b6727cc41": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {}
},
"3a4dc50142f6470eb69194ba4b877a2e": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {}
},
"56709d3ddd984eba8f8331f91384016b": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "FloatProgressModel",
"state": {
"bar_style": "success",
"layout": "IPY_MODEL_82927b0a7f7446c6812a8311b24967a9",
"max": 1,
"style": "IPY_MODEL_7b9553adbb6245658f475efd661c8d23",
"value": 1
}
},
"65e08600af394b7f8a8ab61b37bd0e61": {
"model_module": "@jupyter-widgets/output",
"model_module_version": "1.0.0",
"model_name": "OutputModel",
"state": {
"layout": "IPY_MODEL_8ad9a979890f4368a7e5085c21547a64",
"outputs": [
{
"data": {
"text/html": "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Applying Fast Bias correction <span style=\"color: #729c1f; text-decoration-color: #729c1f\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span> <span style=\"color: #800080; text-decoration-color: #800080\">100%</span> <span style=\"color: #0068b5; text-decoration-color: #0068b5\">154/154</span> β€’ <span style=\"color: #0068b5; text-decoration-color: #0068b5\">0:00:08</span> β€’ <span style=\"color: #0068b5; text-decoration-color: #0068b5\">0:00:00</span>\n</pre>\n",
"text/plain": "Applying Fast Bias correction \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[35m100%\u001b[0m \u001b[38;2;0;104;181m154/154\u001b[0m β€’ \u001b[38;2;0;104;181m0:00:08\u001b[0m β€’ \u001b[38;2;0;104;181m0:00:00\u001b[0m\n"
},
"metadata": {},
"output_type": "display_data"
}
]
}
},
"6fd2599d5b8348c2bd8747a1453b2567": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "HTMLModel",
"state": {
"layout": "IPY_MODEL_02328f0f2f4b4cb6a7daaf7b6727cc41",
"style": "IPY_MODEL_ed06c71353e94918b7308a39a11c48fb",
"value": " 101k/0.00 [00:00&lt;00:00, 351kB/s]"
}
},
"7b9553adbb6245658f475efd661c8d23": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "ProgressStyleModel",
"state": {
"description_width": ""
}
},
"82927b0a7f7446c6812a8311b24967a9": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {
"width": "20px"
}
},
"8ad9a979890f4368a7e5085c21547a64": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {}
},
"9625fbb91f6148e0b34c1e42d393ae86": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {}
},
"a5e765f6afe143f387b5c01ea443a3bd": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "DropdownModel",
"state": {
"_options_labels": [
"CPU",
"AUTO"
],
"description": "Device:",
"index": 1,
"layout": "IPY_MODEL_3a4dc50142f6470eb69194ba4b877a2e",
"style": "IPY_MODEL_d40cf6f7acd241428e25190a82ee183f"
}
},
"aed3c12d0a1c4f85b4f1a020d660afaa": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {}
},
"be5f5b6797734945837844481bf7dace": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "HBoxModel",
"state": {
"children": [
"IPY_MODEL_ce22aea3c84945cb85cc1e6521b373a5",
"IPY_MODEL_56709d3ddd984eba8f8331f91384016b",
"IPY_MODEL_6fd2599d5b8348c2bd8747a1453b2567"
],
"layout": "IPY_MODEL_aed3c12d0a1c4f85b4f1a020d660afaa"
}
},
"c2b63701496a42f79ff7b79f97457e9a": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "2.0.0",
"model_name": "LayoutModel",
"state": {}
},
"c3d1f413fb8d48dc92f409d321cb13e2": {
"model_module": "@jupyter-widgets/output",
"model_module_version": "1.0.0",
"model_name": "OutputModel",
"state": {
"layout": "IPY_MODEL_c2b63701496a42f79ff7b79f97457e9a",
"outputs": [
{
"data": {
"text/html": "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Statistics collection <span style=\"color: #729c1f; text-decoration-color: #729c1f\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span> <span style=\"color: #800080; text-decoration-color: #800080\">100%</span> <span style=\"color: #0068b5; text-decoration-color: #0068b5\">300/300</span> β€’ <span style=\"color: #0068b5; text-decoration-color: #0068b5\">0:02:00</span> β€’ <span style=\"color: #0068b5; text-decoration-color: #0068b5\">0:00:00</span>\n</pre>\n",
"text/plain": "Statistics collection \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[35m100%\u001b[0m \u001b[38;2;0;104;181m300/300\u001b[0m β€’ \u001b[38;2;0;104;181m0:02:00\u001b[0m β€’ \u001b[38;2;0;104;181m0:00:00\u001b[0m\n"
},
"metadata": {},
"output_type": "display_data"
}
]
}
},
"ce22aea3c84945cb85cc1e6521b373a5": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "HTMLModel",
"state": {
"layout": "IPY_MODEL_9625fbb91f6148e0b34c1e42d393ae86",
"style": "IPY_MODEL_ff05022a8f1748b8a1a0d722f88b3e22",
"value": "data/test_image.jpg: "
}
},
"d40cf6f7acd241428e25190a82ee183f": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "DescriptionStyleModel",
"state": {
"description_width": ""
}
},
"ed06c71353e94918b7308a39a11c48fb": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "HTMLStyleModel",
"state": {
"description_width": "",
"font_size": null,
"text_color": null
}
},
"ff05022a8f1748b8a1a0d722f88b3e22": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "2.0.0",
"model_name": "HTMLStyleModel",
"state": {
"description_width": "",
"font_size": null,
"text_color": null
}
}
},
"state": {},
"version_major": 2,
"version_minor": 0
}
Expand Down

0 comments on commit 53706f5

Please sign in to comment.