rnwang commited on
Commit
bfbf5ec
1 Parent(s): 650d33e

modify model path

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,7 +42,7 @@
42
  import gradio as gr
43
  import numpy as np
44
  import time
45
- from data import write_image_tensor, PatchDataModule, prepare_data, image2tensor, tensor2image
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 = 'CVPR/FSPBT'
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)