Skip to content

Commit

Permalink
Update notebook examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitroprobachay committed Dec 3, 2024
1 parent a302079 commit c4635b0
Show file tree
Hide file tree
Showing 11 changed files with 401 additions and 299 deletions.
6 changes: 6 additions & 0 deletions nomeroff_net/tools/mcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@

]


# Add URLs from environment variable
additional_urls = os.environ.get("ADDITIONAL_MODEL_CONFIG_URLS", "")
if additional_urls:
model_config_urls.extend(additional_urls.split(","))

# initial
local_storage = os.environ.get('LOCAL_STORAGE', os.path.join(os.path.dirname(__file__), "../../data"))
modelhub = ModelHub(model_config_urls=model_config_urls,
Expand Down
68 changes: 36 additions & 32 deletions tutorials/ju/benchmark/accuracy-test.ipynb

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions tutorials/ju/benchmark/runtime-test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@
"source": [
"import warnings\n",
"import os\n",
"import sys\n",
"from glob import glob\n",
"\n",
"from _paths import nomeroff_net_dir\n",
"current_dir = os.path.dirname(\"./\")\n",
"nomeroff_net_dir = os.path.join(current_dir, \"../../../\")\n",
"sys.path.append(nomeroff_net_dir)\n",
"\n",
"from nomeroff_net import pipeline"
]
},
Expand Down Expand Up @@ -65,7 +69,7 @@
"source": [
"number_plate_detection_and_reading = pipeline(\"number_plate_detection_and_reading_runtime\", \n",
" image_loader=\"opencv\", # Try 'turbo' for faster performance.\n",
" quality_profile=[1, 0, 0])"
" )"
]
},
{
Expand Down Expand Up @@ -215,7 +219,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -229,7 +233,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.7"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
110 changes: 44 additions & 66 deletions tutorials/ju/inference/custom-object-detection.ipynb

Large diffs are not rendered by default.

103 changes: 60 additions & 43 deletions tutorials/ju/inference/custom-options-model-demo.ipynb

Large diffs are not rendered by default.

143 changes: 74 additions & 69 deletions tutorials/ju/inference/detect_brand_np.ipynb

Large diffs are not rendered by default.

61 changes: 48 additions & 13 deletions tutorials/ju/inference/get-started-demo-ocr-custom.ipynb

Large diffs are not rendered by default.

85 changes: 43 additions & 42 deletions tutorials/ju/inference/get-started-demo.ipynb

Large diffs are not rendered by default.

61 changes: 45 additions & 16 deletions tutorials/ju/inference/get-started-tiny-demo.ipynb

Large diffs are not rendered by default.

47 changes: 35 additions & 12 deletions tutorials/ju/inference/number-plate-filling.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -486,7 +486,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.7"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down

0 comments on commit c4635b0

Please sign in to comment.