зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-29 13:06:04 +02:00
fix: update function call in notebook to conform with renaming
Этот коммит содержится в:
родитель
92c7ac1f6d
Коммит
8487947f5d
@ -62,7 +62,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"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",
|
||||
")"
|
||||
]
|
||||
@ -114,7 +114,9 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"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": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"vqa_results = img.analyse_images(\n",
|
||||
"vqa_results = img.analyse_images_from_dict(\n",
|
||||
" analysis_type=\"questions\",\n",
|
||||
" list_of_questions=questions,\n",
|
||||
" is_concise_answer=True,\n",
|
||||
")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "17",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "ammico-dev",
|
||||
"display_name": "ammico",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
@ -182,7 +192,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.13"
|
||||
"version": "3.11.14"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Загрузка…
x
Ссылка в новой задаче
Block a user