Spaces:
Running on Zero
Running on Zero
Download core/__init__.py from hugging-apps/mmdiff: direct link, hf CLI and curl.
- Browser
- Download file 980 Bytes
-
https://huggingface.co/spaces/hugging-apps/mmdiff/resolve/main/core/__init__.py
- Command line
-
hf download hf://spaces/hugging-apps/mmdiff/core/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/hugging-apps/mmdiff/resolve/main/core/__init__.py
980 Bytes
| """Shared building blocks for the mmdiff training / extraction / inference scripts.""" | |
| from .flux_features import ( | |
| load_flux_pipeline, | |
| MultiTimestepFeatureCache, | |
| MultiTimestepFeatureExtractor, | |
| distribute_concepts, | |
| distribute_concepts_across_layers, | |
| ) | |
| from .training_utils import ( | |
| EMA, | |
| load_config, | |
| setup_paths, | |
| calculate_distributed_concept_channels, | |
| feature_mode_flags, | |
| resolve_c_dino, | |
| build_dino_extractor, | |
| build_hyperfeature_fusion, | |
| add_shared_training_args, | |
| add_model_args, | |
| ) | |
| __all__ = [ | |
| "load_flux_pipeline", | |
| "MultiTimestepFeatureCache", | |
| "MultiTimestepFeatureExtractor", | |
| "distribute_concepts", | |
| "distribute_concepts_across_layers", | |
| "EMA", | |
| "load_config", | |
| "setup_paths", | |
| "calculate_distributed_concept_channels", | |
| "feature_mode_flags", | |
| "resolve_c_dino", | |
| "build_dino_extractor", | |
| "build_hyperfeature_fusion", | |
| "add_shared_training_args", | |
| "add_model_args", | |
| ] | |