Skip to content

Commit

Permalink
fix google collab
Browse files Browse the repository at this point in the history
  • Loading branch information
lisa-sousa committed Aug 29, 2024
1 parent a1b135c commit 36962c8
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 34 deletions.
14 changes: 9 additions & 5 deletions xai-for-cnn/1-Tutorial_CNN_Model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@
"metadata": {},
"outputs": [],
"source": [
"from google.colab import drive\n",
"drive.mount('/content/drive')\n",
"%cd /content/drive/MyDrive\n",
"!git clone --branch Juelich-2024 https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"%cd XAI-Tutorials/data_and_models\n"
"#from google.colab import drive\n",
"\n",
"#drive.mount('/content/drive')\n",
"\n",
"#%cd /content/drive/MyDrive\n",
"\n",
"# Don't run this cell if you already cloned the repo \n",
"#!git clone --branch main https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"#%cd XAI-Tutorials"
]
},
{
Expand Down
14 changes: 9 additions & 5 deletions xai-for-cnn/2-Tutorial_Grad-CAM_for_images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,15 @@
"metadata": {},
"outputs": [],
"source": [
"from google.colab import drive\n",
"drive.mount('/content/drive')\n",
"%cd /content/drive/MyDrive\n",
"!git clone --branch Juelich-2024 https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"%cd XAI-Tutorials/xai-for-cnn"
"#from google.colab import drive\n",
"\n",
"#drive.mount('/content/drive')\n",
"\n",
"#%cd /content/drive/MyDrive\n",
"\n",
"# Don't run this cell if you already cloned the repo \n",
"#!git clone --branch main https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"#%cd XAI-Tutorials"
]
},
{
Expand Down
14 changes: 9 additions & 5 deletions xai-for-cnn/3-Tutorial_Grad-CAM_for_signals.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,15 @@
"metadata": {},
"outputs": [],
"source": [
"from google.colab import drive\n",
"drive.mount('/content/drive')\n",
"%cd /content/drive/MyDrive\n",
"!git clone --branch Juelich-2024 https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"%cd XAI-Tutorials/xai-for-cnn\n"
"#from google.colab import drive\n",
"\n",
"#drive.mount('/content/drive')\n",
"\n",
"#%cd /content/drive/MyDrive\n",
"\n",
"# Don't run this cell if you already cloned the repo \n",
"#!git clone --branch main https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"#%cd XAI-Tutorials"
]
},
{
Expand Down
15 changes: 9 additions & 6 deletions xai-for-cnn/4-Tutorial_LIME_Images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,15 @@
"metadata": {},
"outputs": [],
"source": [
"from google.colab import drive\n",
"drive.mount('/content/drive')\n",
"%cd /content/drive/MyDrive\n",
"!git clone --branch Juelich-2024 https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"%cd XAI-Tutorials/xai-for-cnn\n",
"%pip install lime"
"#from google.colab import drive\n",
"\n",
"#drive.mount('/content/drive')\n",
"\n",
"#%cd /content/drive/MyDrive\n",
"\n",
"# Don't run this cell if you already cloned the repo \n",
"#!git clone --branch main https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"#%cd XAI-Tutorials"
]
},
{
Expand Down
15 changes: 9 additions & 6 deletions xai-for-cnn/5-Tutorial_SHAP_Images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,15 @@
"metadata": {},
"outputs": [],
"source": [
"from google.colab import drive\n",
"drive.mount('/content/drive')\n",
"%cd /content/drive/MyDrive\n",
"!git clone --branch Juelich-2024 https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"%cd XAI-Tutorials/xai-for-cnn\n",
"%pip install shap==0.41"
"#from google.colab import drive\n",
"\n",
"#drive.mount('/content/drive')\n",
"\n",
"#%cd /content/drive/MyDrive\n",
"\n",
"# Don't run this cell if you already cloned the repo \n",
"#!git clone --branch main https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"#%cd XAI-Tutorials"
]
},
{
Expand Down
16 changes: 9 additions & 7 deletions xai-for-cnn/6-Tutorial_XAI_for_ImageAnalysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@
"metadata": {},
"outputs": [],
"source": [
"from google.colab import drive\n",
"drive.mount('/content/drive')\n",
"%cd /content/drive/MyDrive\n",
"!git clone --branch Juelich-2024 https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"%cd XAI-Tutorials/xai-for-cnn\n",
"%pip install shap==0.41\n",
"%pip install lime"
"#from google.colab import drive\n",
"\n",
"#drive.mount('/content/drive')\n",
"\n",
"#%cd /content/drive/MyDrive\n",
"\n",
"# Don't run this cell if you already cloned the repo \n",
"#!git clone --branch main https://github.com/HelmholtzAI-Consultants-Munich/XAI-Tutorials.git\n",
"#%cd XAI-Tutorials"
]
},
{
Expand Down

0 comments on commit 36962c8

Please sign in to comment.