Download src/__init__.py from sabertoaster/flow-matching-1: direct link, hf CLI and curl.
- Browser
- Download file 484 Bytes
-
https://huggingface.co/datasets/sabertoaster/flow-matching-1/resolve/main/src/__init__.py
- Command line
-
hf download hf://datasets/sabertoaster/flow-matching-1/src/__init__.py
-
curl -L -o __init__.py https://huggingface.co/datasets/sabertoaster/flow-matching-1/resolve/main/src/__init__.py
484 Bytes
| from .visualize import plot_loss_curve | |
| _TRAINING_EXPORTS = { | |
| "train_one_epoch_condition", | |
| "train_one_epoch_flow_matching", | |
| "evaluate_stage1", | |
| "evaluate_stage2", | |
| "make_data_loaders", | |
| "main", | |
| } | |
| def __getattr__(name): | |
| if name in _TRAINING_EXPORTS: | |
| from . import training | |
| return getattr(training, name) | |
| raise AttributeError(f"module {__name__!r} has no attribute {name!r}") | |
| __all__ = [ | |
| "plot_loss_curve", | |
| *_TRAINING_EXPORTS, | |
| ] | |