Skip to content

Commit abb3e3b

Browse files
committed
update
1 parent c6ac397 commit abb3e3b

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

src/diffusers/utils/constants.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,14 @@
5656

5757
if 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/"

src/diffusers/utils/remote_utils.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,6 @@
4343
from 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-
5746
def detect_image_type(data: bytes) -> str:
5847
if data.startswith(b"\xff\xd8"):
5948
return "jpeg"

tests/remote/test_remote_decode.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@
2121
import torch
2222

2323
from 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
)
3133
from diffusers.utils.testing_utils import (

tests/remote/test_remote_encode.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@
1919
import torch
2020

2121
from 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
)

0 commit comments

Comments
 (0)