add padding of t in TargetConditionalFlowMatcher #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello and thank you so much for the great package :)
What does this PR do?
Using the class TargetConditionalFlowMatcher results in the error:
To fix this I have added the call to the existing function "pad_t_like_x()" in both the "compute_mu()" and "compute_conditional_flow()" methods of the class. This does not introduce any dependency and solves the issue.
Doubt about the performance of the modified class
I have tested the modified TargetConditionalFlowMatcher in the 8gaussians to moons example. With the changes, the training code works but the model does not converge. Performance is terrible when compared with the standard ConditionalFlowMatcher. I don't see how this could be a fault of this PR; is this a problem of the TargetFM algorithm itself? Still, I find it a bit strange that it is not capable of converging for this simple problem. My tests are collected here.
Let me know if I can provide anything else,
Best regards,
Francesco