Skip to content

Allow passing networks directly instead of using network=str(), network_kwargs=dict() #343

@LarsKue

Description

@LarsKue

This has been fundamentally limited by serialization, which should become much simpler with #342.

The idea is that we want to move from this:

inference_network = FlowMatching(subnet="mlp", subnet_kwargs=dict(widths=[256, 512, 256]))

to this:

inference_network = FlowMatching(subnet=MLP(widths=[256, 512, 256]))

Advantages:

  • Intuitive code structure
  • Significantly improved transparency on which arguments are available
  • Trivially allows users to pass their own networks
  • Reduced developer load for maintaining dispatch

Disadvantages:

  • Slightly more complicated type hinting

Sub-issues

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions