From d1e6f36c0d3ca7f927d70f470a7b0b836bb273e3 Mon Sep 17 00:00:00 2001 From: DimasfromLavoisier Date: Mon, 12 Jan 2026 10:59:09 +0100 Subject: [PATCH 1/2] upd vqa section --- docs/tutorials/ammico_demo_getting_started.ipynb | 10 +++++----- docs/tutorials/ammico_demo_video_summary.ipynb | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/tutorials/ammico_demo_getting_started.ipynb b/docs/tutorials/ammico_demo_getting_started.ipynb index f13f6e32..7ca8c320 100644 --- a/docs/tutorials/ammico_demo_getting_started.ipynb +++ b/docs/tutorials/ammico_demo_getting_started.ipynb @@ -243,8 +243,8 @@ "metadata": {}, "outputs": [], "source": [ - "summary_and_answers = image_summary_vqa.analyse_images_from_dict(\n", - " analysis_type=\"summary_and_questions\",\n", + "answers = image_summary_vqa.analyse_images_from_dict(\n", + " analysis_type=\"questions\",\n", " list_of_questions=list_of_questions,\n", " is_concise_summary=True,\n", " is_concise_answer=True,\n", @@ -268,11 +268,11 @@ "source": [ "from pprint import pprint\n", "\n", - "for key in summary_and_answers.keys():\n", + "for key in answers.keys():\n", " # Load and display the image\n", - " image_path = summary_and_answers[key][\"filename\"]\n", + " image_path = answers[key][\"filename\"]\n", " img = Image.open(image_path)\n", - " for answer in summary_and_answers[key][\"vqa\"]:\n", + " for answer in answers[key][\"vqa\"]:\n", " pprint(answer, width=100, compact=True)\n", " plt.figure(figsize=(8, 6))\n", " plt.imshow(img)\n", diff --git a/docs/tutorials/ammico_demo_video_summary.ipynb b/docs/tutorials/ammico_demo_video_summary.ipynb index 57981313..13280bcf 100644 --- a/docs/tutorials/ammico_demo_video_summary.ipynb +++ b/docs/tutorials/ammico_demo_video_summary.ipynb @@ -280,8 +280,8 @@ "metadata": {}, "outputs": [], "source": [ - "summary_and_answers = vid_summary_vqa.analyse_videos_from_dict(\n", - " analysis_type=\"summary_and_questions\", list_of_questions=list_of_questions\n", + "answers = vid_summary_vqa.analyse_videos_from_dict(\n", + " analysis_type=\"questions\", list_of_questions=list_of_questions\n", ")" ] }, @@ -300,12 +300,12 @@ "metadata": {}, "outputs": [], "source": [ - "for key in summary_and_answers.keys():\n", + "for key in answers.keys():\n", " # Load and display the image\n", - " video_path = summary_and_answers[key][\"filename\"]\n", + " video_path = answers[key][\"filename\"]\n", " display_first_frame(video_path)\n", "\n", - " for answer in summary_and_answers[key][\"vqa_answers\"]:\n", + " for answer in answers[key][\"vqa_answers\"]:\n", " pprint(answer, width=100, compact=True)" ] }, From f199cc994745f17790c3d8f4afe3801090bdae70 Mon Sep 17 00:00:00 2001 From: Inga Ulusoy Date: Wed, 14 Jan 2026 15:29:42 +0100 Subject: [PATCH 2/2] Remove notebook copy command from Dockerfile Removed the command to copy notebooks into the home directory. --- Dockerfile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 36f9c6de..f1855a38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,3 @@ ENV JUPYTER_ENABLE_LAB=yes # Export where the data is located ENV XDG_DATA_HOME=/opt/ammico/data - -# Copy notebooks into the home directory -RUN rm -rf "$HOME"/work && \ - cp /opt/ammico/notebooks/*.ipynb "$HOME" \ No newline at end of file