Skip to content

Improving conditioner#66

Merged
fariedabuzaid merged 9 commits into
fix-usflowsfrom
feat/improved-conv-conditioner
Apr 7, 2025
Merged

Improving conditioner#66
fariedabuzaid merged 9 commits into
fix-usflowsfrom
feat/improved-conv-conditioner

Conversation

@turnmanh
Copy link
Copy Markdown
Collaborator

@turnmanh turnmanh commented Apr 7, 2025

As discussed. Changes incl. minor refactoring, device mgmt., cond. convolutional cond. for soft training.

in the inital implementation, twice the in channels were used. However, this is not feasible. I assume this mistake was introduced by c&p from an external source that applied some transformation before, doubling the number of channels. My assumption is due to the subsequent conv. layer, which was expecting also double the channels.
@turnmanh turnmanh added the enhancement New feature or request label Apr 7, 2025
@turnmanh turnmanh self-assigned this Apr 7, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread src/veriflow/networks.py
"""
size_in = x.shape
# Make sure to create a new obj. to avoid inplace operations.
if context is not None:
Copy link

Copilot AI Apr 7, 2025

Choose a reason for hiding this comment

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

The provided context is overwritten with a new tensor (torch.Tensor([0])). This negates any non-null context passed to the function; consider preserving the caller's context.

Suggested change
if context is not None:
if context is None:

Copilot uses AI. Check for mistakes.
Comment thread src/veriflow/networks.py
c_hidden: Number of hidden dimensions to use within the network
rescale_hidden: Factor by which to rescale hight and width the
hidden before and after the hidden layers.
c_out: Number of output channels. If -1, the numberinput channels
Copy link

Copilot AI Apr 7, 2025

Choose a reason for hiding this comment

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

[nitpick] Typo in docstring: 'numberinput' should be 'number input'.

Suggested change
c_out: Number of output channels. If -1, the numberinput channels
c_out: Number of output channels. If -1, the number input channels

Copilot uses AI. Check for mistakes.
@fariedabuzaid fariedabuzaid merged commit 33e18c4 into fix-usflows Apr 7, 2025
1 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants