We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d145a46 commit 190beb6Copy full SHA for 190beb6
examples/image/images/compare.png
-48 Bytes
examples/image/train.py
@@ -318,12 +318,10 @@ def evaluate_model(model: ment.MENT) -> dict:
318
for key in ["sinogram", "image"]:
319
results[method][key] = None
320
321
+
322
# Form true image and sinogram
323
image_true = grid_values_true.copy()
-projections = ment.unravel(model.projections)
324
-sinogram_true = np.vstack([projection.values for projection in projections])
325
-sinogram_true = sinogram_true.T
326
-
+sinogram_true = radon_transform(image_true, angles)
327
results["true"]["sinogram"] = sinogram_true.copy()
328
results["true"]["image"] = image_true.copy()
329
0 commit comments