Spaces:
Runtime error
Runtime error
Download data/__init__.py from oedevs/FLowInOne_demo: direct link, hf CLI and curl.
- Browser
- Download file 548 Bytes
-
https://huggingface.co/spaces/oedevs/FLowInOne_demo/resolve/main/data/__init__.py
- Command line
-
hf download hf://spaces/oedevs/FLowInOne_demo/data/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/oedevs/FLowInOne_demo/resolve/main/data/__init__.py
548 Bytes
| from data.transforms import center_crop_arr, DatasetFactory | |
| from data.web_dataset import WebDatasetDataset | |
| from data.data_factory import WebDataLoader, OnlineFeatures | |
| from data.wds_utils import ( | |
| log_and_continue, | |
| pytorch_worker_info, | |
| is_multi_node_environment, | |
| split_data_by_node, | |
| get_dataset_size, | |
| WeightedRoundRobinSampler, | |
| StrictProportionalBatchSampler, | |
| ) | |
| def get_dataset(name, **kwargs): | |
| if name == 'online_features': | |
| return OnlineFeatures(**kwargs) | |
| else: | |
| raise NotImplementedError(name) | |