Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix drunet diffunet #216

Merged
merged 11 commits into from
Jun 10, 2024
Merged

fix drunet diffunet #216

merged 11 commits into from
Jun 10, 2024

Conversation

matthieutrs
Copy link
Collaborator

@matthieutrs matthieutrs commented May 15, 2024

Fix for #214 and adpating forward of DRUNet for multi-node.

Additional fixes:

  • multi-node compatible sigma generation for DRUNet;
  • loading pretrained models from Restormer fixed;

Checks to be done before submitting your PR

  • python3 -m pytest tests/ runs successfully.
  • black . runs successfully.
  • make html runs successfully (in the docs/ directory).
  • Updated docstrings related to the changes (as applicable).
  • Added an entry to the CHANGELOG.rst.

@matthieutrs matthieutrs marked this pull request as ready for review May 15, 2024 12:53
@@ -184,15 +183,7 @@ def forward(self, x, sigma):
"""
if isinstance(sigma, torch.Tensor):
if sigma.ndim > 0:
if x.get_device() > -1:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing this solves the issue?

@tachella tachella merged commit 0d0c174 into main Jun 10, 2024
4 checks passed
@matthieutrs matthieutrs deleted the fix_model branch June 10, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants