File tree Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 5656
5757if USE_PEFT_BACKEND and _CHECK_PEFT :
5858 dep_version_check ("peft" )
59+
60+
61+ DECODE_ENDPOINT_SD_V1 = "https://q1bj3bpq6kzilnsu.us-east-1.aws.endpoints.huggingface.cloud/"
62+ DECODE_ENDPOINT_SD_XL = "https://x2dmsqunjd6k9prw.us-east-1.aws.endpoints.huggingface.cloud/"
63+ DECODE_ENDPOINT_FLUX = "https://whhx50ex1aryqvw6.us-east-1.aws.endpoints.huggingface.cloud/"
64+ DECODE_ENDPOINT_HUNYUAN_VIDEO = "https://o7ywnmrahorts457.us-east-1.aws.endpoints.huggingface.cloud/"
65+
66+
67+ ENCODE_ENDPOINT_SD_V1 = "https://qc6479g0aac6qwy9.us-east-1.aws.endpoints.huggingface.cloud/"
68+ ENCODE_ENDPOINT_SD_XL = "https://xjqqhmyn62rog84g.us-east-1.aws.endpoints.huggingface.cloud/"
69+ ENCODE_ENDPOINT_FLUX = "https://ptccx55jz97f9zgo.us-east-1.aws.endpoints.huggingface.cloud/"
Original file line number Diff line number Diff line change 4343from PIL import Image
4444
4545
46- DECODE_ENDPOINT_SD_V1 = "https://q1bj3bpq6kzilnsu.us-east-1.aws.endpoints.huggingface.cloud/"
47- DECODE_ENDPOINT_SD_XL = "https://x2dmsqunjd6k9prw.us-east-1.aws.endpoints.huggingface.cloud/"
48- DECODE_ENDPOINT_FLUX = "https://whhx50ex1aryqvw6.us-east-1.aws.endpoints.huggingface.cloud/"
49- DECODE_ENDPOINT_HUNYUAN_VIDEO = "https://o7ywnmrahorts457.us-east-1.aws.endpoints.huggingface.cloud/"
50-
51-
52- ENCODE_ENDPOINT_SD_V1 = "https://qc6479g0aac6qwy9.us-east-1.aws.endpoints.huggingface.cloud/"
53- ENCODE_ENDPOINT_SD_XL = "https://xjqqhmyn62rog84g.us-east-1.aws.endpoints.huggingface.cloud/"
54- ENCODE_ENDPOINT_FLUX = "https://ptccx55jz97f9zgo.us-east-1.aws.endpoints.huggingface.cloud/"
55-
56-
5746def detect_image_type (data : bytes ) -> str :
5847 if data .startswith (b"\xff \xd8 " ):
5948 return "jpeg"
Original file line number Diff line number Diff line change 2121import torch
2222
2323from diffusers .image_processor import VaeImageProcessor
24- from diffusers .utils .remote_utils import (
24+ from diffusers .utils .constants import (
2525 DECODE_ENDPOINT_FLUX ,
2626 DECODE_ENDPOINT_HUNYUAN_VIDEO ,
2727 DECODE_ENDPOINT_SD_V1 ,
2828 DECODE_ENDPOINT_SD_XL ,
29+ )
30+ from diffusers .utils .remote_utils import (
2931 remote_decode ,
3032)
3133from diffusers .utils .testing_utils import (
Original file line number Diff line number Diff line change 1919import torch
2020
2121from diffusers .utils import load_image
22- from diffusers .utils .remote_utils import (
22+ from diffusers .utils .constants import (
2323 DECODE_ENDPOINT_FLUX ,
2424 DECODE_ENDPOINT_SD_V1 ,
2525 DECODE_ENDPOINT_SD_XL ,
2626 ENCODE_ENDPOINT_FLUX ,
2727 ENCODE_ENDPOINT_SD_V1 ,
2828 ENCODE_ENDPOINT_SD_XL ,
29+ )
30+ from diffusers .utils .remote_utils import (
2931 remote_decode ,
3032 remote_encode ,
3133)
You can’t perform that action at this time.
0 commit comments