Transformers
Safetensors
trace_anything
feature-extraction
trace-anything
4d
trajectory-field
video
video-to-3d
custom_code
Instructions to use bigshanedogg/Trace-Anything with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigshanedogg/Trace-Anything with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bigshanedogg/Trace-Anything", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processing_trace_anything.py from bigshanedogg/Trace-Anything: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/bigshanedogg/Trace-Anything/resolve/main/processing_trace_anything.py
- Command line
-
hf download hf://bigshanedogg/Trace-Anything/processing_trace_anything.py
-
curl -L -o processing_trace_anything.py https://huggingface.co/bigshanedogg/Trace-Anything/resolve/main/processing_trace_anything.py
499 Bytes
| """Trace Anything processor: ``TraceAnythingImageProcessor`` (infer.py _load_images) as its only part.""" | |
| from transformers.processing_utils import ProcessorMixin | |
| class TraceAnythingProcessor(ProcessorMixin): | |
| attributes = ["image_processor"] | |
| def __init__(self, image_processor=None, **kwargs): | |
| super().__init__(image_processor, **kwargs) | |
| def __call__(self, images=None, **kwargs): | |
| return self.image_processor(images, **kwargs) | |
| __all__ = ["TraceAnythingProcessor"] | |