-
Notifications
You must be signed in to change notification settings - Fork 1
Edge type flags #89
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
Edge type flags #89
Changes from all commits
18a0db6
253bec4
6c76d58
f8584e3
4e1eea2
c650b89
f74c135
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -275,8 +275,17 @@ def build_model_from_config(config: dict, device: torch.device) -> nn.Module: | |
| drop_rate=config.get("drop_rate", 0.1), | ||
| n_message_gvps=config.get("n_message_gvps", 2), | ||
| n_update_gvps=config.get("n_update_gvps", 2), | ||
| k_pw=config.get("k_pw") or 16, | ||
| k_ww=config.get("k_ww") or 16, | ||
| cutoff=config.get("cutoff", 8.0), | ||
| max_neighbors=config.get("max_neighbors", 256), | ||
| dynamic_edge_policy=config.get("dynamic_edge_policy", "radius"), | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. presumably at this point you are only dealing with new training runs that used "radius"? otherwise the old config presumably doesn't save this info, and you don't have cli args in the inference script to overwrite this.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right — new runs record dynamic_edge_policy/sampling_strategy/cutoff in the config. Pre-flag checkpoints fall back to the historical defaults (radius / uniform_ball / 8.0) |
||
| # "auto" depends on which prior the run uses, so pass that through. | ||
| sampling_strategy=config.get("sampling_strategy", "uniform_ball"), | ||
| knn_fallback_k=config.get("knn_fallback_k", 8), | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| disable_ww=config.get("disable_ww", False), | ||
| disable_wp=config.get("disable_wp", False), | ||
| k_pw=config.get("k_pw", 12), | ||
| k_ww=config.get("k_ww", 8), | ||
| k_wp=config.get("k_wp", 8), | ||
| ).to(device) | ||
|
|
||
| return model | ||
|
|
@@ -433,6 +442,7 @@ def main(): | |
| flow_matcher = FlowMatcher( | ||
| model=model, | ||
| p_self_cond=config.get("p_self_cond", 0.5), | ||
| sampling_strategy=config.get("sampling_strategy", "uniform_ball"), | ||
| ) | ||
|
|
||
| # Load dataset | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.