* removed some pre-installed conflicting packages in Google Colab.
Этот коммит содержится в:
Petr Andriushchenko 2023-12-13 23:10:12 +01:00 коммит произвёл GitHub
родитель d2921523e0
Коммит 844ade70e2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 29 добавлений и 5 удалений

Просмотреть файл

@ -26,6 +26,8 @@
" # update python version\n", " # update python version\n",
" # install setuptools\n", " # install setuptools\n",
" # %pip install setuptools==61 -qqq\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", " # install ammico\n",
" %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n",
" # mount google drive for data and API key\n", " # mount google drive for data and API key\n",
@ -76,6 +78,7 @@
"source": [ "source": [
"image_dict = ammico.find_files(\n", "image_dict = ammico.find_files(\n",
" path=\"/content/drive/MyDrive/misinformation-data/\",\n", " path=\"/content/drive/MyDrive/misinformation-data/\",\n",
" #path=\"../../data/\",\n",
" limit=2,\n", " limit=2,\n",
")" ")"
] ]
@ -149,6 +152,15 @@
" summary_vis_processors=summary_vis_processors).analyse_image()" " summary_vis_processors=summary_vis_processors).analyse_image()"
] ]
}, },
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"image_dict"
]
},
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
@ -440,7 +452,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.9.18" "version": "3.10.13"
} }
}, },
"nbformat": 4, "nbformat": 4,

Просмотреть файл

@ -31,6 +31,8 @@
" # update python version\n", " # update python version\n",
" # install setuptools\n", " # install setuptools\n",
" # %pip install setuptools==61 -qqq\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", " # install ammico\n",
" %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n",
" # mount google drive for data and API key\n", " # mount google drive for data and API key\n",

Просмотреть файл

@ -30,13 +30,15 @@
"if 'google.colab' in str(get_ipython()):\n", "if 'google.colab' in str(get_ipython()):\n",
" # we're running on colab\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", " # 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", " #%pip install setuptools==61 -qqq\n",
" # install the moralization package\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", " %pip install git+https://github.com/ssciwr/AMMICO.git -qqq\n",
"\n", "\n",
" # prevent loading of the wrong opencv library\n", " # prevent loading of the wrong opencv library\n",
" %pip uninstall -y opencv-contrib-python\n", " #%pip uninstall -y opencv-contrib-python\n",
" %pip install opencv-contrib-python\n", " #%pip install opencv-contrib-python\n",
"\n", "\n",
" from google.colab import drive\n", " from google.colab import drive\n",
" drive.mount('/content/drive')\n", " drive.mount('/content/drive')\n",

Просмотреть файл

@ -37,6 +37,8 @@
" # update python version\n", " # update python version\n",
" # install setuptools\n", " # install setuptools\n",
" # %pip install setuptools==61 -qqq\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", " # install ammico\n",
" %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n",
" # mount google drive for data and API key\n", " # mount google drive for data and API key\n",

Просмотреть файл

@ -40,6 +40,8 @@
" # update python version\n", " # update python version\n",
" # install setuptools\n", " # install setuptools\n",
" # %pip install setuptools==61 -qqq\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", " # install ammico\n",
" %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n",
" # mount google drive for data and API key\n", " # mount google drive for data and API key\n",

Просмотреть файл

@ -34,6 +34,8 @@
" # update python version\n", " # update python version\n",
" # install setuptools\n", " # install setuptools\n",
" # %pip install setuptools==61 -qqq\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", " # install ammico\n",
" %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n",
" # mount google drive for data and API key\n", " # mount google drive for data and API key\n",

Просмотреть файл

@ -37,6 +37,8 @@
" # update python version\n", " # update python version\n",
" # install setuptools\n", " # install setuptools\n",
" # %pip install setuptools==61 -qqq\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", " # install ammico\n",
" %pip install git+https://github.com/ssciwr/ammico.git -qqq\n", " %pip install git+https://github.com/ssciwr/ammico.git -qqq\n",
" # mount google drive for data and API key\n", " # mount google drive for data and API key\n",