Skip to content

Commit

Permalink
optimized for better tabular representation
Browse files Browse the repository at this point in the history
an extention of previous commit for having better readability of csv file
  • Loading branch information
ankanghosh101 committed May 30, 2024
1 parent 5930e3c commit b640029
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 177 deletions.
7 changes: 7 additions & 0 deletions .ipynb_checkpoints/coverdata-checkpoint.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
METRIC,PSNR,SSIM,CC,DATASET
Max,40.86297679,0.983252489,0.999381129,SIPI
Min,37.42230694,0.956893649,0.995526841,SIPI
Mean,39.29749284,0.97397383,0.997915209,SIPI
Max,40.862976791801245,0.9832524892556972,0.9993811288816858,SIPI
Min,37.42230694013433,0.9568936492232867,0.9955268406692906,SIPI
Mean,39.29749283694743,0.9739738302821098,0.9979152088287259,SIPI
5 changes: 1 addition & 4 deletions coverdata.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
METRIC,PSNR,SSIM,CC,DATASET
Max,40.86297679,0.983252489,0.999381129,SIPI
Min,37.42230694,0.956893649,0.995526841,SIPI
Mean,39.29749284,0.97397383,0.997915209,SIPI
Max,40.862976791801245,0.9832524892556972,0.9993811288816858,SIPI
Min,37.42230694013433,0.9568936492232867,0.9955268406692906,SIPI
Mean,39.29749283694743,0.9739738302821098,0.9979152088287259,SIPI
Mean,39.29749283694742,0.9739738302821098,0.9979152088287259,SIPI
18 changes: 10 additions & 8 deletions impercepCOVER.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 4,
"id": "39c19660",
"metadata": {},
"outputs": [],
Expand All @@ -16,12 +16,14 @@
"from skimage.metrics import structural_similarity as ssim\n",
"from skimage.metrics import peak_signal_noise_ratio as psnr\n",
"\n",
"datasetNAME = 'SIPI'"
"datasetNAME = 'SIPI'\n",
"if not os.path.exists('coverdata.csv'):\n",
" pd.DataFrame(columns=['METRIC','PSNR','SSIM','CC','DATASET']).to_csv('coverdata.csv', index=False)"
]
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 5,
"id": "37faf688-c42a-49bd-a7ad-dcce66a0f797",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -49,16 +51,16 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 6,
"id": "f6cadd04",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: total: 11.2 s\n",
"Wall time: 1.16 s\n"
"CPU times: total: 11.3 s\n",
"Wall time: 1.18 s\n"
]
}
],
Expand Down Expand Up @@ -139,7 +141,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 8,
"id": "2a67abc7-6e85-4079-bfa4-9f8d300ab4ee",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -207,7 +209,7 @@
"2 Mean 39.297493 0.973974 0.997915 SIPI"
]
},
"execution_count": 21,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
Loading

0 comments on commit b640029

Please sign in to comment.