Instructions to use Organika/sdxl-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Organika/sdxl-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Organika/sdxl-detector") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("Organika/sdxl-detector") model = AutoModelForImageClassification.from_pretrained("Organika/sdxl-detector") - Inference
- Notebooks
- Google Colab
- Kaggle
23 pickle imports?
I notice 23 pickle imports in this project.
I'm not sure how to tell if they are harmful.
/training_args.bin
Detected Pickle imports (8)
"transformers.trainer_utils.IntervalStrategy",
"transformers.trainer_utils.HubStrategy",
"transformers.training_args.TrainingArguments",
"accelerate.utils.dataclasses.DistributedType",
"transformers.training_args.OptimizerNames",
"torch.device",
"accelerate.state.PartialState",
"transformers.trainer_utils.SchedulerType"
/checkpoint-801/rng_state.pth
Detected Pickle imports (7)
"numpy.dtype",
"torch.ByteStorage",
"numpy.ndarray",
"numpy.core.multiarray._reconstruct",
"torch._utils._rebuild_tensor_v2",
"collections.OrderedDict",
"_codecs.encode"
/checkpoint-801/training_args.bin
Detected Pickle imports (8)
"transformers.trainer_utils.IntervalStrategy",
"transformers.trainer_utils.HubStrategy",
"transformers.training_args.TrainingArguments",
"accelerate.utils.dataclasses.DistributedType",
"transformers.training_args.OptimizerNames",
"torch.device",
"accelerate.state.PartialState",
"transformers.trainer_utils.SchedulerType"