Skip to content

Commit

Permalink
fix issues in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova committed Jan 31, 2025
1 parent 4e57017 commit dd43d94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions notebooks/depth-anything/depth-anything.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@
" r = requests.get(\n",
" url=\"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/utils/notebook_utils.py\",\n",
" )\n",
" open(\"notebook_utils.py\", \"w\").write(r.text)\n",
"\n",
"# Read more about telemetry collection at https://github.com/openvinotoolkit/openvino_notebooks?tab=readme-ov-file#-telemetry\n",
"from notebook_utils import collect_telemetry\n",
"\n",
"collect_telemetry(\"depth-anything.ipynb\")"
" open(\"notebook_utils.py\", \"w\").write(r.text)"
]
},
{
Expand Down Expand Up @@ -144,6 +139,10 @@
"outputs": [],
"source": [
"from pathlib import Path\n",
"# Read more about telemetry collection at https://github.com/openvinotoolkit/openvino_notebooks?tab=readme-ov-file#-telemetry\n",
"from notebook_utils import collect_telemetry\n",
"\n",
"collect_telemetry(\"depth-anything.ipynb\")\n",
"\n",
"\n",
"attention_file_path = Path(\"./torchhub/facebookresearch_dinov2_main/dinov2/layers/attention.py\")\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"\n",
"%pip install -q \"gradio>=4.19\" \"torch>=2.1\" \"transformers\" \"nncf>=2.14.0\" \"diffusers>=0.32.0\" \"opencv-python\" \"pillow\" \"peft>=0.7.0\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -q \"sentencepiece\" \"protobuf\"\n",
"%pip install -q \"git+https://github.com/eaidova/optimum-intel.git\"\n",
"%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
"%pip install -qU \"openvino>=2024.6.0\"\n",
"\n",
"if platform.system() == \"Darwin\":\n",
Expand Down

0 comments on commit dd43d94

Please sign in to comment.