Skip to content

Commit

Permalink
Update demo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mao114 authored Jan 20, 2022
1 parent 1025094 commit fdb509e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@
# Generate correlation matrix for tilt. Do this once for each different turbulence parameter.
tilt_mat(im_size, D, r0, L)

# Simulate
# Simulate.
simulator = Simulator(D/r0, im_size).to(device, dtype=torch.float32)

#Note that the current version does not support batched images. Only one frame at a time.
out = simulator(x).detach().cpu().numpy()

if len(out.shape) == 3:
Expand Down

0 comments on commit fdb509e

Please sign in to comment.