Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
10 changes: 5 additions & 5 deletions docs/tutorials/ammico_demo_getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions docs/tutorials/ammico_demo_video_summary.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
")"
]
},
Expand All @@ -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)"
]
},
Expand Down