Skip to content

Commit

Permalink
add colab notebook for spatial saliency model_2
Browse files Browse the repository at this point in the history
  • Loading branch information
ManooshSamiei committed Apr 16, 2022
1 parent d567d95 commit dfabff3
Showing 1 changed file with 20 additions and 32 deletions.
52 changes: 20 additions & 32 deletions spatial_saliency_colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2509,7 +2509,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 17,
"metadata": {
"id": "-huYfdLrrqUp",
"colab": {
Expand All @@ -2524,6 +2524,21 @@
"text": [
"/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:17: UserWarning: can improve the way GT is discretized\n"
]
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"locally computed:\n",
"AUC: 0.934979192314815\n",
"AUC Borji: 0.8620678619958333\n",
"SAUC: 0.8502377083796303\n",
"NSS: 4.203472264455976\n",
"image_KLD: 1.0647463152805965\n",
"CC: 0.6563009473182845\n",
"SIM: 0.4650988454010617\n",
"INFO GAIN: 2.311629964751863\n"
]
}
],
"source": [
Expand Down Expand Up @@ -2803,41 +2818,14 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "5rQyQ4oUc-W2",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 376
},
"outputId": "cabb1a82-b807-41ec-8a3c-6736a5304d26"
"id": "5rQyQ4oUc-W2"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"\tzip warning: name not matched: ./results/images_jet\n",
"\n",
"zip error: Nothing to do! (try: zip -r /content/results_th30.zip . -i ./results/images_jet)\n"
]
},
{
"output_type": "error",
"ename": "FileNotFoundError",
"evalue": "ignored",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mFileNotFoundError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-17-05fe30a7f560>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msystem\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"zip -r '/content/results_th30.zip' './results/images_jet'\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 4\u001b[0;31m \u001b[0mfiles\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdownload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'results_th30.zip'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;32m/usr/local/lib/python3.7/dist-packages/google/colab/files.py\u001b[0m in \u001b[0;36mdownload\u001b[0;34m(filename)\u001b[0m\n\u001b[1;32m 187\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mOSError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmsg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 188\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 189\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mFileNotFoundError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmsg\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# pylint: disable=undefined-variable\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 190\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 191\u001b[0m \u001b[0mcomm_manager\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0m_IPython\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mkernel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcomm_manager\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mFileNotFoundError\u001b[0m: Cannot find file: results_th30.zip"
]
}
],
"outputs": [],
"source": [
"from google.colab import files\n",
"\n",
"!zip -r '/content/results_th30.zip' './results/images_jet'\n",
"files.download('results_th30.zip') "
"!zip -r './results_th30.zip' './results/images/images_jet'\n",
"files.download('./results_th30.zip') "
]
}
],
Expand Down

0 comments on commit dfabff3

Please sign in to comment.