Tennineee commited on
Commit
68b8ca8
·
verified ·
1 Parent(s): be6bb46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ device = torch.device('cpu')
44
  parser = argparse.ArgumentParser('PDFNet Testing script', parents=[get_args_parser()])
45
  args = parser.parse_args(args=[])
46
  model,model_name = build_model(args)
47
- model_path = hf_hub_download(repo_id="Tennineee/PDFNet",filename="PDFNet_Best.pth", repo_type="model")
48
  model.load_state_dict(torch.load(model_path,map_location='cpu'),strict=False)
49
  model = model.to(device).eval()
50
 
@@ -68,7 +68,7 @@ DAMV2.load_state_dict(state_dict)
68
  DAMV2 = DAMV2.to(device).eval()
69
 
70
  title = "# PDFNet"
71
- description = """Official demo for **PDFNet**, here use DAMV2-base to generate depth map.
72
  Please refer to our [paper](https://arxiv.org/abs/2503.06100) and [github](https://github.com/Tennine2077/PDFNet) for more details."""
73
 
74
  class GOSNormalize(object):
 
44
  parser = argparse.ArgumentParser('PDFNet Testing script', parents=[get_args_parser()])
45
  args = parser.parse_args(args=[])
46
  model,model_name = build_model(args)
47
+ model_path = hf_hub_download(repo_id="Tennineee/PDFNet-general",filename="PDFNet-Generally.pth", repo_type="model")
48
  model.load_state_dict(torch.load(model_path,map_location='cpu'),strict=False)
49
  model = model.to(device).eval()
50
 
 
68
  DAMV2 = DAMV2.to(device).eval()
69
 
70
  title = "# PDFNet"
71
+ description = """Official demo for **PDFNet**-general, train on DIS-5K, HRSOD-TR, UHRSD-TR and UHRSD-TE. And here uses DAMV2-base to generate depth map.
72
  Please refer to our [paper](https://arxiv.org/abs/2503.06100) and [github](https://github.com/Tennine2077/PDFNet) for more details."""
73
 
74
  class GOSNormalize(object):