зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-29 21:16:06 +02:00
fixing google colab (#169)
* removed some pre-installed conflicting packages in Google Colab.
Этот коммит содержится в:
родитель
d2921523e0
Коммит
844ade70e2
@ -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",
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user