Download src/preprocessing/identity.py from slityak/minyuuu: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/spaces/slityak/minyuuu/resolve/main/src/preprocessing/identity.py
- Command line
-
hf download hf://spaces/slityak/minyuuu/src/preprocessing/identity.py
-
curl -L -o identity.py https://huggingface.co/spaces/slityak/minyuuu/resolve/main/src/preprocessing/identity.py
434 Bytes
| """ | |
| Identity preprocessor - does nothing, just passes through the image. | |
| Used as a placeholder when no preprocessing is needed. | |
| """ | |
| from core.base_processor import PreprocessingModule | |
| from core import DataObject | |
| class IdentityPreprocessor(PreprocessingModule): | |
| def __init__(self): | |
| super().__init__(name="Identity") | |
| def _process(self, input: DataObject) -> DataObject: | |
| return DataObject(input.data.copy()) | |