diff --git a/ammico/notebooks/DemoNotebook_ammico.ipynb b/ammico/notebooks/DemoNotebook_ammico.ipynb index 4de519a7..8d4de55f 100644 --- a/ammico/notebooks/DemoNotebook_ammico.ipynb +++ b/ammico/notebooks/DemoNotebook_ammico.ipynb @@ -26,6 +26,8 @@ " # update python version\n", " # install setuptools\n", " # %pip install setuptools==61 -qqq\n", + " # uninstall some pre-installed packages due to incompatibility\n", + " %pip uninstall tensorflow-probability dopamine-rl lida pandas-gbq torchaudio torchdata torchtext orbax-checkpoint -y -qqq\n", " # install ammico\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " # mount google drive for data and API key\n", @@ -76,6 +78,7 @@ "source": [ "image_dict = ammico.find_files(\n", " path=\"/content/drive/MyDrive/misinformation-data/\",\n", + " #path=\"../../data/\",\n", " limit=2,\n", ")" ] @@ -149,6 +152,15 @@ " summary_vis_processors=summary_vis_processors).analyse_image()" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "image_dict" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -440,7 +452,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.18" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/ammico/notebooks/colors_analysis.ipynb b/ammico/notebooks/colors_analysis.ipynb index 7eedf3f0..ca849ca0 100644 --- a/ammico/notebooks/colors_analysis.ipynb +++ b/ammico/notebooks/colors_analysis.ipynb @@ -31,6 +31,8 @@ " # update python version\n", " # install setuptools\n", " # %pip install setuptools==61 -qqq\n", + " # uninstall some pre-installed packages due to incompatibility\n", + " %pip uninstall tensorflow-probability dopamine-rl lida pandas-gbq torchaudio torchdata torchtext orbax-checkpoint -y -qqq\n", " # install ammico\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " # mount google drive for data and API key\n", diff --git a/ammico/notebooks/cropposts.ipynb b/ammico/notebooks/cropposts.ipynb index 327a30a0..b38fdec4 100644 --- a/ammico/notebooks/cropposts.ipynb +++ b/ammico/notebooks/cropposts.ipynb @@ -30,13 +30,15 @@ "if 'google.colab' in str(get_ipython()):\n", " # we're running on colab\n", " # first install pinned version of setuptools (latest version doesn't seem to work with this package on colab)\n", - " %pip install setuptools==61 -qqq\n", - " # install the moralization package\n", + " #%pip install setuptools==61 -qqq\n", + " # uninstall some pre-installed packages due to incompatibility\n", + " %pip uninstall tensorflow-probability dopamine-rl lida pandas-gbq torchaudio torchdata torchtext orbax-checkpoint -y -qqq\n", + " # install the ammico package\n", " %pip install git+https://github.com/ssciwr/AMMICO.git -qqq\n", "\n", " # prevent loading of the wrong opencv library\n", - " %pip uninstall -y opencv-contrib-python\n", - " %pip install opencv-contrib-python\n", + " #%pip uninstall -y opencv-contrib-python\n", + " #%pip install opencv-contrib-python\n", "\n", " from google.colab import drive\n", " drive.mount('/content/drive')\n", diff --git a/ammico/notebooks/facial_expressions.ipynb b/ammico/notebooks/facial_expressions.ipynb index b2a7f8f9..5fe1ad6b 100644 --- a/ammico/notebooks/facial_expressions.ipynb +++ b/ammico/notebooks/facial_expressions.ipynb @@ -37,6 +37,8 @@ " # update python version\n", " # install setuptools\n", " # %pip install setuptools==61 -qqq\n", + " # uninstall some pre-installed packages due to incompatibility\n", + " %pip uninstall tensorflow-probability dopamine-rl lida pandas-gbq torchaudio torchdata torchtext orbax-checkpoint -y -qqq\n", " # install ammico\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " # mount google drive for data and API key\n", diff --git a/ammico/notebooks/get-text-from-image.ipynb b/ammico/notebooks/get-text-from-image.ipynb index 629ec9dd..4959defa 100644 --- a/ammico/notebooks/get-text-from-image.ipynb +++ b/ammico/notebooks/get-text-from-image.ipynb @@ -40,6 +40,8 @@ " # update python version\n", " # install setuptools\n", " # %pip install setuptools==61 -qqq\n", + " # uninstall some pre-installed packages due to incompatibility\n", + " %pip uninstall tensorflow-probability dopamine-rl lida pandas-gbq torchaudio torchdata torchtext orbax-checkpoint -y -qqq\n", " # install ammico\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " # mount google drive for data and API key\n", diff --git a/ammico/notebooks/image_summary.ipynb b/ammico/notebooks/image_summary.ipynb index 6adf7827..6b029c21 100644 --- a/ammico/notebooks/image_summary.ipynb +++ b/ammico/notebooks/image_summary.ipynb @@ -34,6 +34,8 @@ " # update python version\n", " # install setuptools\n", " # %pip install setuptools==61 -qqq\n", + " # uninstall some pre-installed packages due to incompatibility\n", + " %pip uninstall tensorflow-probability dopamine-rl lida pandas-gbq torchaudio torchdata torchtext orbax-checkpoint -y -qqq\n", " # install ammico\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " # mount google drive for data and API key\n", diff --git a/ammico/notebooks/multimodal_search.ipynb b/ammico/notebooks/multimodal_search.ipynb index 242d3935..b1999070 100644 --- a/ammico/notebooks/multimodal_search.ipynb +++ b/ammico/notebooks/multimodal_search.ipynb @@ -37,6 +37,8 @@ " # update python version\n", " # install setuptools\n", " # %pip install setuptools==61 -qqq\n", + " # uninstall some pre-installed packages due to incompatibility\n", + " %pip uninstall tensorflow-probability dopamine-rl lida pandas-gbq torchaudio torchdata torchtext orbax-checkpoint -y -qqq\n", " # install ammico\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " # mount google drive for data and API key\n",