Giter Site home page Giter Site logo

active-mri-acquisition's People

Contributors

luisenp avatar zihuiwu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

active-mri-acquisition's Issues

Functions in fft_utils.py does not match version of torch>=1.8

Thanks for this repository.

In the file activemri/experimental/cvpr19_models/models/fft_utils.py, the functions of torch.fft, torch.ifft and torch.rfft of torch<=1.7 are used for the implementation of the Fast Fourier Transform. However, these functions are dropped in the new version of torch>=1.8 and replaced with torch.fft.fft, torch.fft.ifft and torch.fft.rfft. What's more, the packages this code depends on include fastmri which depends on torch>=1.8. The above problems will lead to a bug when running the intro notebook

It would be nice to update fft_utils.py to the new version.

Thanks,
Pu Yang

Shape mismatch issue in FTPASGANRAWModel for raw data

Shape mismatch issue in FTPASGANRAWModel for raw data
https://github.com/fairinternal/Active_Acquisition/blob/master/models/ft_pasganraw_model.py#L56

Traceback (most recent call last):
  File "/private/home/sumanab/.pycharm_helpers/pydev/pydevd.py", line 1741, in <module>
    main()
  File "/private/home/sumanab/.pycharm_helpers/pydev/pydevd.py", line 1735, in main
    globals = debugger.run(setup['file'], None, None, is_module)
  File "/private/home/sumanab/.pycharm_helpers/pydev/pydevd.py", line 1135, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "/private/home/sumanab/.pycharm_helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/private/home/sumanab/code/fastMRI/train.py", line 39, in <module>
    model.optimize_parameters()
  File "/private/home/sumanab/code/fastMRI/models/ft_pasganraw_model.py", line 471, in optimize_parameters
    self.backward_D()
  File "/private/home/sumanab/code/fastMRI/models/ft_pasganraw_model.py", line 452, in backward_D
    self.loss_D_fake = self.criterionGAN(pred_fake, False, self.mask, degree=degree, pred_gt=(fake,self.real_B.permute(0,3,1,2)))
  File "/private/home/sumanab/code/fastMRI/models/ft_pasganraw_model.py", line 73, in __call__
    target_tensor = self.get_target_tensor(input, target_is_real, degree, mask, pred_gt)
  File "/private/home/sumanab/code/fastMRI/models/ft_pasganraw_model.py", line 62, in get_target_tensor
    target_tensor[:] = energy
RuntimeError: expand(torch.cuda.FloatTensor{[2, 640]}, size=[1280]): the number of sizes provided (1) must be greater or equal to the number of dimensions in the tensor (2)

Process finished with exit code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.