Instructions to use deepsafe/deepsafe-services with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use deepsafe/deepsafe-services with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("deepsafe/deepsafe-services", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download video/fake-stormer/model_code/scripts/test.sh from deepsafe/deepsafe-services: direct link, hf CLI and curl.
- Browser
- Download file 554 Bytes
-
https://huggingface.co/deepsafe/deepsafe-services/resolve/main/video/fake-stormer/model_code/scripts/test.sh
- Command line
-
hf download hf://deepsafe/deepsafe-services/video/fake-stormer/model_code/scripts/test.sh
-
curl -L -o test.sh https://huggingface.co/deepsafe/deepsafe-services/resolve/main/video/fake-stormer/model_code/scripts/test.sh
554 Bytes
| # CUDA_VISIBLE_DEVICES=0,1,2,3 python scripts/test.py --cfg configs/temporal/bin_cls/ResNet3D_c23.yaml \ | |
| # -i 447.png | |
| # CUDA_VISIBLE_DEVICES=0 python scripts/test.py --cfg configs/temporal/FakeSFormer_base_c23.yaml \ | |
| # -v /data/deepfake_cluster/datasets_df/DFW/test/frames/fake_test/fake_98_187 | |
| CUDA_VISIBLE_DEVICES=0 python scripts/test.py --cfg configs/spatial/xception_sbi.yaml \ | |
| -i 447.png | |