Skip to content

Commit 8061545

Browse files
committed
docs api
1 parent 6cece22 commit 8061545

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/user_guide/physics/intro.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ Another example is the :class:`deepinv.physics.PhysicsCropper` class, which pads
259259
>>> import deepinv as dinv
260260
>>> physics = dinv.physics.BlurFFT(img_size=(1, 16, 16), filter=dinv.physics.blur.gaussian_blur(.2))
261261
>>> x = torch.rand((1, 1, 18, 21)) # define an image 4 times smaller than the physics input size (scale = 2)
262-
>>> new_physics = dinv.physics.PhysicsCropper(physics) # define a padded physics
262+
>>> new_physics = dinv.physics.PhysicsCropper(physics, crop=(2,5)) # define a padded physics
263263
>>> y = new_physics(x) # compute the measurements with padding
264264
>>> print(y.shape)
265-
torch.Size([1, 1, 32, 32])
265+
torch.Size([1, 1, 16, 16])
266266
>>> Aty = new_physics.A_adjoint(y) # compute the adjoint operator with padding
267267
>>> print(Aty.shape)
268268
torch.Size([1, 1, 18, 21]) # the output is the same size as the input image

0 commit comments

Comments
 (0)