Skip to content

Commit 8c405d5

Browse files
committed
dependency
1 parent 303e920 commit 8c405d5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/diffusers/utils/remote_utils.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@
1717
if is_safetensors_available():
1818
import safetensors
1919

20-
from PIL import Image
21-
20+
DTYPE_MAP = {
21+
"float16": torch.float16,
22+
"float32": torch.float32,
23+
"bfloat16": torch.bfloat16,
24+
"uint8": torch.uint8,
25+
}
2226

23-
DTYPE_MAP = {
24-
"float16": torch.float16,
25-
"float32": torch.float32,
26-
"bfloat16": torch.bfloat16,
27-
"uint8": torch.uint8,
28-
}
2927

28+
from PIL import Image
3029

3130
def remote_decode(
3231
endpoint: str,

0 commit comments

Comments
 (0)