Skip to content

Commit

Permalink
changed initiating dict in image_summary.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
piterand committed Sep 12, 2023
1 parent aafe6d9 commit becfe55
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions ammico/notebooks/image_summary.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,24 +63,13 @@
"source": [
"# Here you need to provide the path to your google drive folder\n",
"# or local folder containing the images\n",
"images = ammico.find_files(\n",
" #path=\"/content/drive/MyDrive/misinformation-data/\",\n",
" path=\"../../data/images/\",\n",
"mydict = ammico.find_files(\n",
" path=\"/content/drive/MyDrive/misinformation-data/\",\n",
" #path=\"../../data/images/\",\n",
" limit=2,\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"mydict = ammico.initialize_dict(images)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -135,7 +124,7 @@
"outputs": [],
"source": [
"for key in mydict:\n",
" mydict[key] = obj.analyse_image(subdict = mydict[key])"
" mydict[key] = obj.analyse_image(analysis_type=\"summary\", subdict = mydict[key])"
]
},
{
Expand Down Expand Up @@ -591,7 +580,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.10.13"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit becfe55

Please sign in to comment.