Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +61 -0
- .vscode/settings.json +4 -0
- WWFDiff-PU/.gitignore +7 -0
- WWFDiff-PU/article/load_article_data.py +276 -0
- WWFDiff-PU/assets/.gitkeep +0 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00001.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00002.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00003.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00004.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00005.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00006.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00007.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00008.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_0_1.pt +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_1_2.pt +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_2_3.pt +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_3_4.pt +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_4_5.pt +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_5_6.pt +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_6_7.pt +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_7_8.pt +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s0_e1_compare.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s1_e2_compare.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s2_e3_compare.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s3_e4_compare.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s4_e5_compare.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s5_e6_compare.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s6_e7_compare.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s7_e8_compare.png +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/epoch_98.pth +3 -0
- WWFDiff-PU/ckpt/insar-dlpu/fdu_dlpu_256_big.yaml +89 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00001.png +0 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00002.png +0 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00003.png +0 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00004.png +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00005.png +0 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00006.png +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00007.png +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00008.png +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/samples_0_1.pt +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/samples_1_2.pt +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/samples_2_3.pt +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/samples_3_4.pt +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/samples_4_5.pt +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/samples_5_6.pt +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/samples_6_7.pt +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/samples_7_8.pt +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s0_e1_compare.png +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s1_e2_compare.png +3 -0
- WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s2_e3_compare.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,64 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00001.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00002.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00003.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00004.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00005.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00006.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00007.png filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00008.png filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s0_e1_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s1_e2_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s2_e3_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s3_e4_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s4_e5_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s5_e6_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s6_e7_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s7_e8_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00004.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00006.png filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00007.png filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00008.png filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s0_e1_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s1_e2_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s2_e3_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s3_e4_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s4_e5_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s5_e6_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s6_e7_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s7_e8_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
WWFDiff-PU/ckpt/synpu/no/95/raw/sample_00004.png filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
WWFDiff-PU/ckpt/synpu/no/95/raw/sample_00006.png filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
WWFDiff-PU/ckpt/synpu/no/95/raw/sample_00007.png filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
WWFDiff-PU/ckpt/synpu/no/95/samples_c0_s0_e1_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
WWFDiff-PU/ckpt/synpu/no/95/samples_c0_s1_e2_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
WWFDiff-PU/ckpt/synpu/no/95/samples_c0_s2_e3_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
WWFDiff-PU/ckpt/synpu/no/95/samples_c0_s3_e4_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
WWFDiff-PU/ckpt/synpu/no/95/samples_c0_s4_e5_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
WWFDiff-PU/ckpt/synpu/no/95/samples_c0_s5_e6_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
WWFDiff-PU/ckpt/synpu/no/95/samples_c0_s6_e7_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
WWFDiff-PU/ckpt/synpu/no/95/samples_c0_s7_e8_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
WWFDiff-PU/ckpt/synpu/wwf/98/raw/sample_00004.png filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
WWFDiff-PU/ckpt/synpu/wwf/98/raw/sample_00006.png filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
WWFDiff-PU/ckpt/synpu/wwf/98/raw/sample_00007.png filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
WWFDiff-PU/ckpt/synpu/wwf/98/samples_c0_s0_e1_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
WWFDiff-PU/ckpt/synpu/wwf/98/samples_c0_s1_e2_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
WWFDiff-PU/ckpt/synpu/wwf/98/samples_c0_s2_e3_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
WWFDiff-PU/ckpt/synpu/wwf/98/samples_c0_s3_e4_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
WWFDiff-PU/ckpt/synpu/wwf/98/samples_c0_s4_e5_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
WWFDiff-PU/ckpt/synpu/wwf/98/samples_c0_s5_e6_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
WWFDiff-PU/ckpt/synpu/wwf/98/samples_c0_s6_e7_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
WWFDiff-PU/ckpt/synpu/wwf/98/samples_c0_s7_e8_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
WWFDiff-PU/ckpt/synpu/wwf+dualrc/94/raw/sample_00004.png filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
WWFDiff-PU/ckpt/synpu/wwf+dualrc/94/raw/sample_00006.png filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
WWFDiff-PU/ckpt/synpu/wwf+dualrc/94/raw/sample_00007.png filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
WWFDiff-PU/ckpt/synpu/wwf+dualrc/94/samples_c0_s0_e1_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
WWFDiff-PU/ckpt/synpu/wwf+dualrc/94/samples_c0_s1_e2_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
WWFDiff-PU/ckpt/synpu/wwf+dualrc/94/samples_c0_s2_e3_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
WWFDiff-PU/ckpt/synpu/wwf+dualrc/94/samples_c0_s3_e4_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
WWFDiff-PU/ckpt/synpu/wwf+dualrc/94/samples_c0_s4_e5_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
WWFDiff-PU/ckpt/synpu/wwf+dualrc/94/samples_c0_s5_e6_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
WWFDiff-PU/ckpt/synpu/wwf+dualrc/94/samples_c0_s6_e7_compare.png filter=lfs diff=lfs merge=lfs -text
|
| 96 |
+
WWFDiff-PU/ckpt/synpu/wwf+dualrc/94/samples_c0_s7_e8_compare.png filter=lfs diff=lfs merge=lfs -text
|
.vscode/settings.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"python-envs.defaultEnvManager": "ms-python.python:conda",
|
| 3 |
+
"python-envs.defaultPackageManager": "ms-python.python:conda"
|
| 4 |
+
}
|
WWFDiff-PU/.gitignore
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
tmp/**
|
| 2 |
+
data/**
|
| 3 |
+
test/**
|
| 4 |
+
article/**
|
| 5 |
+
article_old/**
|
| 6 |
+
article_old2/**
|
| 7 |
+
log/**
|
WWFDiff-PU/article/load_article_data.py
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import scipy.io as sio
|
| 2 |
+
import torch
|
| 3 |
+
from spectral.io import envi
|
| 4 |
+
import numpy as np
|
| 5 |
+
|
| 6 |
+
def pi_formatter(x, pos):
|
| 7 |
+
k = x / np.pi
|
| 8 |
+
|
| 9 |
+
# 0
|
| 10 |
+
if np.isclose(k, 0):
|
| 11 |
+
return "0"
|
| 12 |
+
|
| 13 |
+
# 接近整数倍 π
|
| 14 |
+
if np.isclose(k, round(k)):
|
| 15 |
+
k_int = int(round(k))
|
| 16 |
+
if k_int == 1:
|
| 17 |
+
return r"$\pi$"
|
| 18 |
+
elif k_int == -1:
|
| 19 |
+
return r"$-\pi$"
|
| 20 |
+
else:
|
| 21 |
+
return rf"${k_int}\pi$"
|
| 22 |
+
|
| 23 |
+
# 非整数倍:显示数值(可改精度)
|
| 24 |
+
return rf"${x:.2f}$"
|
| 25 |
+
|
| 26 |
+
def _to_numpy_2d(x: torch.Tensor):
|
| 27 |
+
return x.detach().cpu().squeeze().numpy()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def load_article_data():
|
| 31 |
+
# gt
|
| 32 |
+
gt_mat_path = r"data/gt/gt.mat"
|
| 33 |
+
gt_mat = sio.loadmat(gt_mat_path)['gt']
|
| 34 |
+
|
| 35 |
+
# keys: wrapped, gt_unwrapped, pred_unwrapped, diff_unwrapped
|
| 36 |
+
#dlpu
|
| 37 |
+
dlpu_pred_batch_path = "data/dlpu/samples_0_1.pt"
|
| 38 |
+
dlpu_pred_batch_pt = torch.load(dlpu_pred_batch_path)
|
| 39 |
+
dlpu_pred = dlpu_pred_batch_pt['pred_unwrapped']
|
| 40 |
+
dlpu_pred = _to_numpy_2d(dlpu_pred)
|
| 41 |
+
# dlpu_diff = gt_mat - _to_numpy_2d(dlpu_pred)
|
| 42 |
+
|
| 43 |
+
#punet
|
| 44 |
+
punet_pred_batch_path = "data/punet/samples_0_1.pt"
|
| 45 |
+
punet_pred_batch_pt = torch.load(punet_pred_batch_path)
|
| 46 |
+
punet_pred = punet_pred_batch_pt['pred_unwrapped']
|
| 47 |
+
# punet_diff = gt_mat - _to_numpy_2d(punet_pred)
|
| 48 |
+
punet_pred = _to_numpy_2d(punet_pred)
|
| 49 |
+
|
| 50 |
+
#restormer
|
| 51 |
+
restormer_pred_batch_path = "data/restormer/samples_0_1.pt"
|
| 52 |
+
restormer_pred_batch_pt = torch.load(restormer_pred_batch_path)
|
| 53 |
+
restormer_pred = restormer_pred_batch_pt['pred_unwrapped']
|
| 54 |
+
# restormer_diff = gt_mat - _to_numpy_2d(restormer_pred)
|
| 55 |
+
restormer_pred = _to_numpy_2d(restormer_pred)
|
| 56 |
+
|
| 57 |
+
#snaphu
|
| 58 |
+
snaphu_pred_path = "data/snaphu/000001.hdr"
|
| 59 |
+
snaphu_mat = envi.open(snaphu_pred_path)
|
| 60 |
+
snaphu_pred = snaphu_mat.load()[:,:,0].squeeze(-1)
|
| 61 |
+
|
| 62 |
+
#sqd_lstm
|
| 63 |
+
sqd_lstm_pred_batch_path = "data/sqd_lstm/samples_0_1.pt"
|
| 64 |
+
sqd_lstm_pred_batch_pt = torch.load(sqd_lstm_pred_batch_path)
|
| 65 |
+
sqd_lstm_pred = sqd_lstm_pred_batch_pt['pred_unwrapped']
|
| 66 |
+
# sqd_lstm_diff = gt_mat - _to_numpy_2d(sqd_lstm_pred)
|
| 67 |
+
sqd_lstm_pred = _to_numpy_2d(sqd_lstm_pred)
|
| 68 |
+
|
| 69 |
+
#u3net
|
| 70 |
+
u3net_pred_batch_path = "data/u3net/samples_0_1.pt"
|
| 71 |
+
u3net_pred_batch_pt = torch.load(u3net_pred_batch_path)
|
| 72 |
+
u3net_pred = u3net_pred_batch_pt['pred_unwrapped']
|
| 73 |
+
# u3net_diff = gt_mat - _to_numpy_2d(u3net_pred)
|
| 74 |
+
u3net_pred = _to_numpy_2d(u3net_pred)
|
| 75 |
+
|
| 76 |
+
#uformer
|
| 77 |
+
uformer_pred_batch_path = "data/uformer/samples_0_1.pt"
|
| 78 |
+
uformer_pred_batch_pt = torch.load(uformer_pred_batch_path)
|
| 79 |
+
uformer_pred = uformer_pred_batch_pt['pred_unwrapped']
|
| 80 |
+
# uformer_diff = gt_mat - _to_numpy_2d(uformer_pred)
|
| 81 |
+
uformer_pred = _to_numpy_2d(uformer_pred)
|
| 82 |
+
|
| 83 |
+
#ours
|
| 84 |
+
ours_pred_batch_path = "data/ours/samples_0_1.pt"
|
| 85 |
+
ours_pred_batch_pt = torch.load(ours_pred_batch_path)
|
| 86 |
+
ours_pred = ours_pred_batch_pt['pred_unwrapped']
|
| 87 |
+
# ours_diff = gt_mat - _to_numpy_2d(ours_pred)
|
| 88 |
+
ours_pred = _to_numpy_2d(ours_pred)
|
| 89 |
+
|
| 90 |
+
return {
|
| 91 |
+
"gt": gt_mat,
|
| 92 |
+
"dlpu_pred": dlpu_pred,
|
| 93 |
+
"punet_pred": punet_pred,
|
| 94 |
+
"restormer_pred": restormer_pred,
|
| 95 |
+
"snaphu_pred": snaphu_pred,
|
| 96 |
+
"sqd_lstm_pred": sqd_lstm_pred,
|
| 97 |
+
"u3net_pred": u3net_pred,
|
| 98 |
+
"uformer_pred": uformer_pred,
|
| 99 |
+
"ours_pred": ours_pred,
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
def load_article_data_dlpu():
|
| 103 |
+
# gt
|
| 104 |
+
gt_mat_path = r"data_dlpu/gt/gt.mat"
|
| 105 |
+
gt_mat = sio.loadmat(gt_mat_path)['output']
|
| 106 |
+
|
| 107 |
+
# keys: wrapped, gt_unwrapped, pred_unwrapped, diff_unwrapped
|
| 108 |
+
#dlpu
|
| 109 |
+
dlpu_pred_batch_path = "data_dlpu/dlpu/samples_0_1.pt"
|
| 110 |
+
dlpu_pred_batch_pt = torch.load(dlpu_pred_batch_path)
|
| 111 |
+
dlpu_pred = dlpu_pred_batch_pt['pred_unwrapped']
|
| 112 |
+
dlpu_pred = _to_numpy_2d(dlpu_pred)
|
| 113 |
+
# dlpu_diff = gt_mat - _to_numpy_2d(dlpu_pred)
|
| 114 |
+
|
| 115 |
+
#punet
|
| 116 |
+
punet_pred_batch_path = "data_dlpu/punet/samples_0_1.pt"
|
| 117 |
+
punet_pred_batch_pt = torch.load(punet_pred_batch_path)
|
| 118 |
+
punet_pred = punet_pred_batch_pt['pred_unwrapped']
|
| 119 |
+
# punet_diff = gt_mat - _to_numpy_2d(punet_pred)
|
| 120 |
+
punet_pred = _to_numpy_2d(punet_pred)
|
| 121 |
+
|
| 122 |
+
#restormer
|
| 123 |
+
restormer_pred_batch_path = "data_dlpu/restormer/samples_0_1.pt"
|
| 124 |
+
restormer_pred_batch_pt = torch.load(restormer_pred_batch_path)
|
| 125 |
+
restormer_pred = restormer_pred_batch_pt['pred_unwrapped']
|
| 126 |
+
# restormer_diff = gt_mat - _to_numpy_2d(restormer_pred)
|
| 127 |
+
restormer_pred = _to_numpy_2d(restormer_pred)
|
| 128 |
+
|
| 129 |
+
#snaphu
|
| 130 |
+
snaphu_pred_path = "data_dlpu/snaphu/000001.hdr"
|
| 131 |
+
snaphu_mat = envi.open(snaphu_pred_path)
|
| 132 |
+
snaphu_pred = snaphu_mat.load()[:,:,0].squeeze(-1)
|
| 133 |
+
|
| 134 |
+
#sqd_lstm
|
| 135 |
+
sqd_lstm_pred_batch_path = "data_dlpu/sqd_lstm/samples_0_1.pt"
|
| 136 |
+
sqd_lstm_pred_batch_pt = torch.load(sqd_lstm_pred_batch_path)
|
| 137 |
+
sqd_lstm_pred = sqd_lstm_pred_batch_pt['pred_unwrapped']
|
| 138 |
+
# sqd_lstm_diff = gt_mat - _to_numpy_2d(sqd_lstm_pred)
|
| 139 |
+
sqd_lstm_pred = _to_numpy_2d(sqd_lstm_pred)
|
| 140 |
+
|
| 141 |
+
#u3net
|
| 142 |
+
u3net_pred_batch_path = "data_dlpu/u3net/samples_0_1.pt"
|
| 143 |
+
u3net_pred_batch_pt = torch.load(u3net_pred_batch_path)
|
| 144 |
+
u3net_pred = u3net_pred_batch_pt['pred_unwrapped']
|
| 145 |
+
# u3net_diff = gt_mat - _to_numpy_2d(u3net_pred)
|
| 146 |
+
u3net_pred = _to_numpy_2d(u3net_pred)
|
| 147 |
+
|
| 148 |
+
#uformer
|
| 149 |
+
uformer_pred_batch_path = "data_dlpu/uformer/samples_0_1.pt"
|
| 150 |
+
uformer_pred_batch_pt = torch.load(uformer_pred_batch_path)
|
| 151 |
+
uformer_pred = uformer_pred_batch_pt['pred_unwrapped']
|
| 152 |
+
# uformer_diff = gt_mat - _to_numpy_2d(uformer_pred)
|
| 153 |
+
uformer_pred = _to_numpy_2d(uformer_pred)
|
| 154 |
+
|
| 155 |
+
#ours
|
| 156 |
+
ours_pred_batch_path = "data_dlpu/ours/samples_0_1.pt"
|
| 157 |
+
ours_pred_batch_pt = torch.load(ours_pred_batch_path)
|
| 158 |
+
ours_pred = ours_pred_batch_pt['pred_unwrapped']
|
| 159 |
+
# ours_diff = gt_mat - _to_numpy_2d(ours_pred)
|
| 160 |
+
ours_pred = _to_numpy_2d(ours_pred)
|
| 161 |
+
|
| 162 |
+
return {
|
| 163 |
+
"gt": gt_mat,
|
| 164 |
+
"dlpu_pred": dlpu_pred,
|
| 165 |
+
"punet_pred": punet_pred,
|
| 166 |
+
"restormer_pred": restormer_pred,
|
| 167 |
+
"snaphu_pred": snaphu_pred,
|
| 168 |
+
"sqd_lstm_pred": sqd_lstm_pred,
|
| 169 |
+
"u3net_pred": u3net_pred,
|
| 170 |
+
"uformer_pred": uformer_pred,
|
| 171 |
+
"ours_pred": ours_pred,
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
def load_article_ours_snr_data():
|
| 177 |
+
#ours
|
| 178 |
+
ours_0db_batch_path = "data_snr/ours_snr/0db/samples_0_1.pt"
|
| 179 |
+
ours_0db_batch_pt = torch.load(ours_0db_batch_path)
|
| 180 |
+
ours_0db = ours_0db_batch_pt['pred_unwrapped']
|
| 181 |
+
ours_pred = _to_numpy_2d(ours_0db)
|
| 182 |
+
|
| 183 |
+
ours_5db_batch_path = "data_snr/ours_snr/5db/samples_0_1.pt"
|
| 184 |
+
ours_5db_batch_pt = torch.load(ours_5db_batch_path)
|
| 185 |
+
ours_5db = ours_5db_batch_pt['pred_unwrapped']
|
| 186 |
+
ours_5db = _to_numpy_2d(ours_5db)
|
| 187 |
+
|
| 188 |
+
ours_10db_batch_path = "data_snr/ours_snr/10db/samples_0_1.pt"
|
| 189 |
+
ours_10db_batch_pt = torch.load(ours_10db_batch_path)
|
| 190 |
+
ours_10db = ours_10db_batch_pt['pred_unwrapped']
|
| 191 |
+
ours_10db = _to_numpy_2d(ours_10db)
|
| 192 |
+
|
| 193 |
+
ours_20db_batch_path = "data_snr/ours_snr/20db/samples_0_1.pt"
|
| 194 |
+
ours_20db_batch_pt = torch.load(ours_20db_batch_path)
|
| 195 |
+
ours_20db = ours_20db_batch_pt['pred_unwrapped']
|
| 196 |
+
ours_20db = _to_numpy_2d(ours_20db)
|
| 197 |
+
|
| 198 |
+
ours_30db_batch_path = "data_snr/ours_snr/30db/samples_0_1.pt"
|
| 199 |
+
ours_30db_batch_pt = torch.load(ours_30db_batch_path)
|
| 200 |
+
ours_30db = ours_30db_batch_pt['pred_unwrapped']
|
| 201 |
+
ours_30db = _to_numpy_2d(ours_30db)
|
| 202 |
+
|
| 203 |
+
return {
|
| 204 |
+
"0db": ours_pred,
|
| 205 |
+
"5db": ours_5db,
|
| 206 |
+
"10db": ours_10db,
|
| 207 |
+
"20db": ours_20db,
|
| 208 |
+
"30db": ours_30db,
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
def load_article_snr_data(name, snr):
|
| 212 |
+
# if name=="dlpu" or name =="restormer" or name=="ours":
|
| 213 |
+
# if name=="ours":
|
| 214 |
+
# name = "punet"
|
| 215 |
+
if name == "snaphu":
|
| 216 |
+
snaphu_pred_path = f"data_snr/{name}_snr/{snr}db/000001.hdr"
|
| 217 |
+
snaphu_mat = envi.open(snaphu_pred_path)
|
| 218 |
+
snaphu_pred = snaphu_mat.load()[:,:,0].squeeze(-1)
|
| 219 |
+
return snaphu_pred
|
| 220 |
+
elif name == "wrapped":
|
| 221 |
+
# wrapped_mat_path = f"data_snr/{name}_snr/{snr}db/wrapped.mat"
|
| 222 |
+
# wrapped_mat = sio.loadmat(wrapped_mat_path)['input']
|
| 223 |
+
wrapped_mat_path = f"data_snr/ours_snr/{snr}db/samples_0_1.pt"
|
| 224 |
+
pred_batch_pt = torch.load(wrapped_mat_path)
|
| 225 |
+
wrapped_mat = pred_batch_pt['wrapped']
|
| 226 |
+
wrapped_mat = _to_numpy_2d(wrapped_mat)
|
| 227 |
+
return wrapped_mat
|
| 228 |
+
else:
|
| 229 |
+
pred_batch_path = f"data_snr/{name}_snr/{snr}db/samples_0_1.pt"
|
| 230 |
+
pred_batch_pt = torch.load(pred_batch_path)
|
| 231 |
+
pred = pred_batch_pt['pred_unwrapped']
|
| 232 |
+
# pred = _to_numpy_2d(pred)
|
| 233 |
+
return pred
|
| 234 |
+
|
| 235 |
+
def load_article_data_idx(name, idx):
|
| 236 |
+
# if name=="dlpu" or name =="restormer":
|
| 237 |
+
# name = "punet"
|
| 238 |
+
if name == "wrapped":
|
| 239 |
+
wrapped_mat_path = f"data/{name}/00000{idx}.mat"
|
| 240 |
+
wrapped_mat = sio.loadmat(wrapped_mat_path)['input']
|
| 241 |
+
return wrapped_mat
|
| 242 |
+
elif name == "gt":
|
| 243 |
+
wrapped_mat_path = f"data/{name}/00000{idx}.mat"
|
| 244 |
+
wrapped_mat = sio.loadmat(wrapped_mat_path)['gt']
|
| 245 |
+
return wrapped_mat
|
| 246 |
+
else:
|
| 247 |
+
if name == "ours":
|
| 248 |
+
pred_batch_path = f"data/{name}/samples_{idx-1}_{idx}.pt"
|
| 249 |
+
else:
|
| 250 |
+
pred_batch_path = f"data/{name}/samples_{idx*2-2}_{idx*2-1}.pt"
|
| 251 |
+
pred_batch_pt = torch.load(pred_batch_path)
|
| 252 |
+
pred = pred_batch_pt['pred_unwrapped']
|
| 253 |
+
# pred = _to_numpy_2d(pred)
|
| 254 |
+
return pred
|
| 255 |
+
|
| 256 |
+
|
| 257 |
+
def load_article_data_dlpu_idx(name, idx):
|
| 258 |
+
# if name == "ours":
|
| 259 |
+
# name = "punet"
|
| 260 |
+
if name == "wrapped":
|
| 261 |
+
wrapped_mat_path = f"data_dlpu/{name}/00000{idx}.mat"
|
| 262 |
+
wrapped_mat = sio.loadmat(wrapped_mat_path)['input']
|
| 263 |
+
return wrapped_mat
|
| 264 |
+
elif name == "gt":
|
| 265 |
+
wrapped_mat_path = f"data_dlpu/{name}/00000{idx}.mat"
|
| 266 |
+
wrapped_mat = sio.loadmat(wrapped_mat_path)['output']
|
| 267 |
+
return wrapped_mat
|
| 268 |
+
else:
|
| 269 |
+
if name == "ours":
|
| 270 |
+
pred_batch_path = f"data_dlpu/{name}/samples_{idx-1}_{idx}.pt"
|
| 271 |
+
else:
|
| 272 |
+
pred_batch_path = f"data_dlpu/{name}/samples_{idx*2-2}_{idx*2-1}.pt"
|
| 273 |
+
pred_batch_pt = torch.load(pred_batch_path)
|
| 274 |
+
pred = pred_batch_pt['pred_unwrapped']
|
| 275 |
+
# pred = _to_numpy_2d(pred)
|
| 276 |
+
return pred
|
WWFDiff-PU/assets/.gitkeep
ADDED
|
File without changes
|
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00001.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00002.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00003.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00004.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00005.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00006.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00007.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/raw/sample_00008.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_0_1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32c19b25d27834ea3bca6b1835b2623e5710d4f08e29410c4e303336d04c2551
|
| 3 |
+
size 2100528
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_1_2.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a10f9f4c3c4af90562bdab7b20c75566355fa03589ac217ca89ac236e13008f
|
| 3 |
+
size 2100528
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_2_3.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd2d10823caeb89dc9005d6235f91ea6bf18081b28308f503f7f07a236f63e72
|
| 3 |
+
size 2100528
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_3_4.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:920aff255eecf7987e75115121e762ea622b54dcc70c2050c26326d6529195fb
|
| 3 |
+
size 2100528
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_4_5.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f9536aae5e4c29452449b8861f3f3d942f603edd4881f2d2e00934d5ed8a9ae
|
| 3 |
+
size 2100528
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_5_6.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:766b0b98cd898225abae63c795950b48674aa01cd3cf25f13442ccc6f99c2d7d
|
| 3 |
+
size 2100528
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_6_7.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ae7c4729e4877a4665fcb4bf1f6e0c3be2cb4128debe6948adae8957176842b
|
| 3 |
+
size 2100528
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_7_8.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:186b7d2c419804699ad2b5cc255ce9d9ed6a027ba8ca11022cf59e4e9ccc3b2a
|
| 3 |
+
size 2100528
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s0_e1_compare.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s1_e2_compare.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s2_e3_compare.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s3_e4_compare.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s4_e5_compare.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s5_e6_compare.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s6_e7_compare.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/98/samples_c0_s7_e8_compare.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/insar-dlpu/epoch_98.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b1ce804b80a30f8298fde8c6bfc5f11b6ce0be1d3b0e929b3da9cf93f6d47d1
|
| 3 |
+
size 42371037
|
WWFDiff-PU/ckpt/insar-dlpu/fdu_dlpu_256_big.yaml
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
seed: 42
|
| 2 |
+
|
| 3 |
+
loss_type:
|
| 4 |
+
# name: Pure
|
| 5 |
+
name: PureL1
|
| 6 |
+
|
| 7 |
+
meter:
|
| 8 |
+
name: WavMeter
|
| 9 |
+
|
| 10 |
+
data:
|
| 11 |
+
name: InSARDLPUMat256Big
|
| 12 |
+
image_size: 256
|
| 13 |
+
color_channels: 1
|
| 14 |
+
num_workers: 1
|
| 15 |
+
k_min: 0
|
| 16 |
+
k_max: 97
|
| 17 |
+
wavelet_level: 1
|
| 18 |
+
wavelet_type: haar
|
| 19 |
+
mean: 10.0180
|
| 20 |
+
std: 5.7466
|
| 21 |
+
scale_alpha: 1
|
| 22 |
+
|
| 23 |
+
training:
|
| 24 |
+
device: cuda
|
| 25 |
+
brand_new_epochs: 100001
|
| 26 |
+
continue_training_epochs: 1000001
|
| 27 |
+
batch_size: 16
|
| 28 |
+
use_all_data: false
|
| 29 |
+
amp: true
|
| 30 |
+
log_freq: 1
|
| 31 |
+
snapshot_freq: 1
|
| 32 |
+
snapshot_sampling: false
|
| 33 |
+
snapshot_sampling_freq: 100
|
| 34 |
+
snapshot_val: false
|
| 35 |
+
snapshot_val_freq: 1
|
| 36 |
+
snapshot_batch_size: 128
|
| 37 |
+
snapshot_best_loss: true
|
| 38 |
+
best_evaluate_loss: 0.03
|
| 39 |
+
|
| 40 |
+
model:
|
| 41 |
+
name: FDUNet
|
| 42 |
+
sample_size: 256
|
| 43 |
+
in_channels: 1
|
| 44 |
+
out_channels: 1
|
| 45 |
+
layers_per_block: 2
|
| 46 |
+
block_out_channels: [64, 64, 64, 64]
|
| 47 |
+
cross_attention_dim: 192
|
| 48 |
+
|
| 49 |
+
diffusion:
|
| 50 |
+
name: FduDDPMDiffusion
|
| 51 |
+
timesteps: 1000
|
| 52 |
+
num_train_timesteps: 1000
|
| 53 |
+
num_infer_timesteps: 5
|
| 54 |
+
conditioning_channels: 2
|
| 55 |
+
repeat_channels: 1
|
| 56 |
+
use_controlnet: false
|
| 57 |
+
use_patch_embedding: false
|
| 58 |
+
prediction_type: "sample"
|
| 59 |
+
|
| 60 |
+
sampling:
|
| 61 |
+
device: cuda
|
| 62 |
+
batch_size: 1
|
| 63 |
+
total_samples: 8
|
| 64 |
+
record_freq: 1
|
| 65 |
+
eps: 1e-5
|
| 66 |
+
fix_seed: true
|
| 67 |
+
|
| 68 |
+
val:
|
| 69 |
+
device: cuda
|
| 70 |
+
batch_size: 32
|
| 71 |
+
|
| 72 |
+
test:
|
| 73 |
+
device: cuda
|
| 74 |
+
batch_size: 128
|
| 75 |
+
|
| 76 |
+
optim:
|
| 77 |
+
optimizer: Adam
|
| 78 |
+
lr: 0.0001
|
| 79 |
+
weight_decay: 0.0001
|
| 80 |
+
beta1: 0.9
|
| 81 |
+
eps: 1e-8
|
| 82 |
+
warmup: 2
|
| 83 |
+
grad_clip: 1.0
|
| 84 |
+
momentum: 0.9
|
| 85 |
+
|
| 86 |
+
iio:
|
| 87 |
+
use_tensorboard: true
|
| 88 |
+
use_wandb: false
|
| 89 |
+
save_pth_to_wandb: false
|
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00001.png
ADDED
|
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00002.png
ADDED
|
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00003.png
ADDED
|
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00004.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00005.png
ADDED
|
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00006.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00007.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/synpu/dualrc/96/raw/sample_00008.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_0_1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:012221db1ba6a9a252c9d96da6376c4df36038b3cba8d52de41b3e9b7e314955
|
| 3 |
+
size 527600
|
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_1_2.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ab718cf9099ac3ad33051a7bb0d8704b04ad6304e22eff9d927d5ec0b52db94
|
| 3 |
+
size 527600
|
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_2_3.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5528dd58ff27aba1cb8142ac32e8a82d76c16666df44b6c5c05e31efff293f13
|
| 3 |
+
size 527600
|
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_3_4.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e90ef95f0eaaf67452dfd0583ad6bf12b17b5f1a36b7c2a50640b2918d21a95
|
| 3 |
+
size 527600
|
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_4_5.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c8366bb17b26b475cee02a09dfa8d2186f707793fa0d5ea074cc056d2fa4de67
|
| 3 |
+
size 527600
|
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_5_6.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87757d72b46eea9af90cf65db3cb14427bb07629da555971fbf1ebb9e5561c7f
|
| 3 |
+
size 527600
|
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_6_7.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:50336b35ef203d2f7c082bb8b329da28febaa3c77a7d756816582a509d06ef50
|
| 3 |
+
size 527600
|
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_7_8.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07f728c6998311bbfa0a6ad854e262472d6417a447f2fb939ca568815541af3a
|
| 3 |
+
size 527600
|
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s0_e1_compare.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s1_e2_compare.png
ADDED
|
Git LFS Details
|
WWFDiff-PU/ckpt/synpu/dualrc/96/samples_c0_s2_e3_compare.png
ADDED
|
Git LFS Details
|