Git Product home page Git Product logo

Comments (2)

mariusarvinte avatar mariusarvinte commented on August 24, 2024

Hello and thank you for the question, sorry for the late reply.

First, when you say it can sample knees data, please note that this refers to conditional sampling given k-space measurements, not pure unconditional sampling. One can think of the k-space measurements as "guiding" the sampling process for a simplification.

Second, regarding the sizes you mentioned, the network architecture we used only contains convolutional and self-attention blocks and can thus perform forward passes on any height and width shapes (up to some limitations, such as sizes being divisible by 16). What is not invariant is the number of input/output channels, which is 2 in our case.

The exact model is here: https://github.com/ajiljalal/ncsnv2/blob/ef1eae385fd2b4ec9d31f13be3640b91bc621d26/models/ncsnv2.py#L198

To change the spatial dimensions you would need to change the last two shapes of the initial samples as shown below. I'd recommend keeping them a multiple of 16 to avoid other errors:

csgm-mri-langevin/main.py

Lines 114 to 116 in 91e0a5a

samples = torch.rand(y[0].shape[0], self.langevin_config.data.channels,
self.config['image_size'][0],
self.config['image_size'][1], device=self.device)

Or directly via the config file, e.g., like here for the knees experiment:

image_size:
- 320
- 320

from csgm-mri-langevin.

mariusarvinte avatar mariusarvinte commented on August 24, 2024

Closing due to inactivity, please feel free to reopen if there are further questions.

from csgm-mri-langevin.

Related Issues (6)

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.