Skip to content

Commit ae450f1

Browse files
committed
Fix
1 parent 119d8f4 commit ae450f1

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

papers/ed-afm/figures/stats/stats_noise.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from mlspm.models import EDAFMNet
1818

1919
if __name__ == "__main__":
20+
2021
# # Normal noise model
2122
# model_type = 'base' # Type of pretrained weights to use
2223
# save_file = Path('mse_normal.csv') # File to save MSE values into
@@ -39,17 +40,10 @@
3940

4041
afmulator_args = {
4142
'pixPerAngstrome' : 20,
42-
'lvec' : np.array([
43-
[ 0.0, 0.0, 0.0],
44-
[20.0, 0.0, 0.0],
45-
[ 0.0, 20.0, 0.0],
46-
[ 0.0, 0.0, 5.0]
47-
]),
4843
'scan_dim' : (128, 128, 20),
4944
'scan_window' : ((2.0, 2.0, 6.0), (18.0, 18.0, 8.0)),
50-
'amplitude' : 1.0,
5145
'df_steps' : 10,
52-
'initFF' : True
46+
'tipR0' : [0.0, 0.0, 4.0]
5347
}
5448

5549
generator_kwargs = {
@@ -115,7 +109,7 @@
115109
X_ = [torch.from_numpy(x).unsqueeze(1).to(device) for x in X_]
116110

117111
with torch.no_grad():
118-
pred, _ = model(X)
112+
pred, _ = model(X_)
119113
pred = pred[0]
120114

121115
diff = pred - ref[0]

0 commit comments

Comments
 (0)