From dd43d94ec87c8ed2f4e094d2cacaed7fea6792f9 Mon Sep 17 00:00:00 2001 From: eaidova Date: Fri, 31 Jan 2025 08:17:58 +0400 Subject: [PATCH] fix issues in notebooks --- notebooks/depth-anything/depth-anything.ipynb | 11 +++++------ .../sana-image-generation/sana-image-generation.ipynb | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/notebooks/depth-anything/depth-anything.ipynb b/notebooks/depth-anything/depth-anything.ipynb index ea6aa08babe..693219616d7 100644 --- a/notebooks/depth-anything/depth-anything.ipynb +++ b/notebooks/depth-anything/depth-anything.ipynb @@ -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)" ] }, { @@ -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", diff --git a/notebooks/sana-image-generation/sana-image-generation.ipynb b/notebooks/sana-image-generation/sana-image-generation.ipynb index 854ab16f9ee..2dacfe1cd86 100644 --- a/notebooks/sana-image-generation/sana-image-generation.ipynb +++ b/notebooks/sana-image-generation/sana-image-generation.ipynb @@ -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",