Instructions to use fahimahamed1/NeoNude with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fahimahamed1/NeoNude with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("fahimahamed1/NeoNude", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download src/transforms/__init__.py from fahimahamed1/NeoNude: direct link, hf CLI and curl.
- Browser
- Download file 547 Bytes
-
https://huggingface.co/fahimahamed1/NeoNude/resolve/main/src/transforms/__init__.py
- Command line
-
hf download hf://fahimahamed1/NeoNude/src/transforms/__init__.py
-
curl -L -o __init__.py https://huggingface.co/fahimahamed1/NeoNude/resolve/main/src/transforms/__init__.py
547 Bytes
| """ | |
| OpenCV image transforms used in the pipeline. | |
| Phase 0: dress -> correct (color correction) | |
| Phase 2: mask -> maskref (mask refinement) | |
| Phase 4: maskdet -> maskfin (mask finalization with body annotations) | |
| """ | |
| from .annotation import BodyPart | |
| # Re-export public functions | |
| from .correct import correct_color # noqa: F401 | |
| from .maskref import create_maskref # noqa: F401 | |
| from .maskfin import create_maskfin # noqa: F401 | |
| __all__ = [ | |
| "BodyPart", | |
| "correct_color", | |
| "create_maskref", | |
| "create_maskfin", | |
| ] | |