Instructions to use stabilityai/stable-diffusion-x4-upscaler with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-diffusion-x4-upscaler with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-x4-upscaler", 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
My Antivirus reacting to a Trojan trought this, False possitive?
I was running this throught Python with Diffusers an I got the message:
"C:\Users\MYUSER.cache\huggingface\hub\tmp43y_t9rv has been detected as infected with Trojan.Ciusky.CryptedAit.1"
And I wondered if anyone has any knowledge about this? Is this a false possitive?
I used this "pip install diffusers transformers accelerate scipy safetensors" for installing as in the example and used the example script
Mixed with some Tkinter script to make it so I could chose files from my system. When I ran this throught VS code my antivirus picked this up and stopped the process.
Same here
"
Suspicious activity blocked
5 minutes ago
Feature:
Antivirus
C:\AI\stable-diffusion-webui\models\Stable-diffusion\x4-upscaler-ema.ckpt tried to load a malicious resource detected as Trojan.Ciusky.CryptedAit.1 and was blocked. Your device is safe
"
Also detected 'Trojan.Ciusky.CryptedAit.1' in stable-diffusion-x4-upscaler/unet/diffusion_pytorch_model.bin.