зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-30 05:26:05 +02:00
fix: update function call in notebook to conform with renaming
Этот коммит содержится в:
родитель
92c7ac1f6d
Коммит
8487947f5d
@ -62,7 +62,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"image_dict = ammico.find_files(\n",
|
"image_dict = ammico.find_files(\n",
|
||||||
" path=str(\"/insert/your/path/here/\"),\n",
|
" path=str(\"../../data/in\"),\n",
|
||||||
" limit=-1, # -1 means no limit on the number of files, by default it is set to 20\n",
|
" limit=-1, # -1 means no limit on the number of files, by default it is set to 20\n",
|
||||||
")"
|
")"
|
||||||
]
|
]
|
||||||
@ -114,7 +114,9 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"summaries = img.analyse_images(analysis_type=\"summary\", is_concise_summary=False)"
|
"summaries = img.analyse_images_from_dict(\n",
|
||||||
|
" analysis_type=\"summary\", is_concise_summary=False\n",
|
||||||
|
")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -158,17 +160,25 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"vqa_results = img.analyse_images(\n",
|
"vqa_results = img.analyse_images_from_dict(\n",
|
||||||
" analysis_type=\"questions\",\n",
|
" analysis_type=\"questions\",\n",
|
||||||
" list_of_questions=questions,\n",
|
" list_of_questions=questions,\n",
|
||||||
" is_concise_answer=True,\n",
|
" is_concise_answer=True,\n",
|
||||||
")"
|
")"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"id": "17",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "ammico-dev",
|
"display_name": "ammico",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python3"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
@ -182,7 +192,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.11.13"
|
"version": "3.11.14"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user