Spaces:
Running
Running
Update options/Banner_Model/Image2Image_2.py
Browse files
options/Banner_Model/Image2Image_2.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import torch
|
2 |
from controlnet_aux import LineartDetector
|
3 |
from diffusers import ControlNetModel,UniPCMultistepScheduler,FluxPipeline
|
|
|
|
|
|
|
4 |
|
5 |
device= "cuda" if torch.cuda.is_available() else "cpu"
|
6 |
print("Using device for I2I_2:", device)
|
|
|
1 |
import torch
|
2 |
from controlnet_aux import LineartDetector
|
3 |
from diffusers import ControlNetModel,UniPCMultistepScheduler,FluxPipeline
|
4 |
+
from huggingface_hub import login
|
5 |
+
import os
|
6 |
+
login(token=os.getenv("TOKEN"))
|
7 |
|
8 |
device= "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
print("Using device for I2I_2:", device)
|