Spaces:
Runtime error
Runtime error
modify model path
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@
|
|
42 |
import gradio as gr
|
43 |
import numpy as np
|
44 |
import time
|
45 |
-
from data import
|
46 |
import torch
|
47 |
from tqdm import tqdm
|
48 |
from bigdl.nano.pytorch.trainer import Trainer
|
@@ -55,7 +55,7 @@ import huggingface_hub
|
|
55 |
|
56 |
device = 'cpu'
|
57 |
dtype = torch.float32
|
58 |
-
MODEL_REPO = '
|
59 |
ckpt_path = huggingface_hub.hf_hub_download(
|
60 |
MODEL_REPO, 'generator.pt')
|
61 |
generator = torch.load(ckpt_path)
|
|
|
42 |
import gradio as gr
|
43 |
import numpy as np
|
44 |
import time
|
45 |
+
from data import PatchDataModule, prepare_data, image2tensor, tensor2image
|
46 |
import torch
|
47 |
from tqdm import tqdm
|
48 |
from bigdl.nano.pytorch.trainer import Trainer
|
|
|
55 |
|
56 |
device = 'cpu'
|
57 |
dtype = torch.float32
|
58 |
+
MODEL_REPO = 'BigDL/FSPBT'
|
59 |
ckpt_path = huggingface_hub.hf_hub_download(
|
60 |
MODEL_REPO, 'generator.pt')
|
61 |
generator = torch.load(ckpt_path)
|