Instructions to use OwensLab/commfor-data-preprocessor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OwensLab/commfor-data-preprocessor with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OwensLab/commfor-data-preprocessor", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from OwensLab/commfor-data-preprocessor: direct link, hf CLI and curl.
- Browser
- Download file 809 Bytes
-
https://huggingface.co/OwensLab/commfor-data-preprocessor/resolve/main/README.md
- Command line
-
hf download hf://OwensLab/commfor-data-preprocessor/README.md
-
curl -L -o README.md https://huggingface.co/OwensLab/commfor-data-preprocessor/resolve/main/README.md
809 Bytes
metadata
library_name: transformers
license: mit
datasets:
- OwensLab/CommunityForensics
- OwensLab/CommunityForensics-Small
This is a data processor for the Community Forensics classifiers. Detailed instructions will be updated at the Community Forensics GitHub_repo in the future.
- Code: GitHub Repository
- Paper: arXiv
Simple usage example.
dataprocessor_hf.py is included in this repository.
import dataprocessor_hf as dphf
from PIL import Image
data_processor = dphf.CommForImageProcessor.from_pretrained('OwensLab/commfor-data-preprocessor', size=384)
img = Image.open('path_to_img.png')
processed_image = data_processor(img, mode='test')