Andrewwango
Andrewwango
In the definition of ERGAS, it should be `\ ratio` rather than `* ratio` For example see ERGAS defined in [Du et al](https://ieeexplore.ieee.org/abstract/document/4317530), [Meng et al](https://ieeexplore.ieee.org/document/9082183) https://github.com/Lightning-AI/torchmetrics/blob/4230cfef3d2020fffff873565acea01ad883d3e4/src/torchmetrics/functional/image/ergas.py#L82
When using `Trainer` with `online_measurements=True` and `physics_generator is not None`, a new set of physics params is generated per batch, which changes every epoch. We could reset the `physics_generator` every...
Add Cartesian mask generators for: - Uniform random sampling `RandomMaskGenerator` (i.e. existing `deepinv.physics.generator.mri.AccelerationMaskGenerator`) - Gaussian sampling `GaussianMaskGenerator` - Uniform (equispaced) sampling `UniformMaskGenerator` - Base class for enforcing same acceleration factor...
Physics generators have a `batch_size` argument in `step`, and this should be passed in get online measurements in Trainer. https://github.com/deepinv/deepinv/blob/13885b05b073702e38e412a34fccc9f8d11c4b9e/deepinv/training/trainer.py#L354 I propose: `params = self.physics_generator.step(batch_size=x.shape[0])`
This PR includes the following: - Losses: adversarial losses following DeblurGAN (Kupyn et al.), AmbientGAN (Bora et al.) and UAIR (Pajot et al.) - Models: generator and discriminator models that...
In #183 `generate_dataset` can use physics that varies sample to sample, by using a `physics_generator`. Then it saves the generated samples and the `physics` state dict. It should also save...
This PR introduces the projective transformation, or homography, an image transformation available for self-supervised learning using equivariant imaging. The transformation is implemented at `deepinv.transform.Homography`. I've also implemented a few subgroups...
Each physics generator should have a `rng` attribute that is set at initialisation from a seed `self.rng = torch.Generator().manual_seed(seed)` and also possible to set at forward in `step(seed=None)` if wanted....
- Allow deterministic transform - Consolidate all transforms to use `get_params` then `transform` - Symmetrise transform i.e. `T_inv f(Tx)` where T_inv and T are the same realisation - Add random...
The test method of the Trainer class should use the same methods as the train method, so that when methods (e.g. get samples) in the Trainer are overriden, the test...