Spaces:
Running
on
Zero
Running
on
Zero
Update style_transfer.py
Browse files- style_transfer.py +3 -0
style_transfer.py
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
import torch
|
|
|
|
|
|
|
2 |
from PIL import Image, ImageEnhance
|
3 |
import numpy as np
|
4 |
import gradio as gr
|
|
|
1 |
import torch
|
2 |
+
if not hasattr(torch, 'float8_e4m3fn'):
|
3 |
+
torch.float8_e4m3fn = torch.float32
|
4 |
+
|
5 |
from PIL import Image, ImageEnhance
|
6 |
import numpy as np
|
7 |
import gradio as gr
|