Thanks to visit codestin.com
Credit goes to github.com

Skip to content

about the inference code  #5

@snadee001

Description

@snadee001

Hello author,

I wanted to clarify if the results from the Cascade model in the infer.py (for 3D Fourier-Net+) at line 120:
vout_1, vout_2, vout_3 = model(x.float().to(device), y.float().to(device)) are in the spatial domain or still in the frequency domain? I am asking because when running the code, I get an error that leads back to Dv_xy having a shape of torch.Size([1, 3, 280, 336, 392]) instead of torch.Size([1, 1, 160, 192, 224]) like x_seg. And this comes from the padding being done at line 150: p3d = (84, 84, 72, 72, 60, 60).

If the model returns the result in the spatial domain, why is it necessary to redo the FFT, inverse FFT, and padding again during main() in the infer.py file? (I also noticed this section is commented out in train.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions