chenzhicun commited on
Commit
cda9597
1 Parent(s): 96cea77

初始化web demo.

Browse files
__pycache__/torchvision_x_functional.cpython-310.pyc ADDED
Binary file (15.3 kB). View file
app.py CHANGED
@@ -27,7 +27,7 @@ if cuda:
27
  classifier = classifier.cuda()
28
 
29
  # Load pretrained models
30
- cache = download_cached_file('https://drive.google.com/uc?export=download&id=1tzeECo1m4MBqvfLv4H4SQ7by4YMEP17H',
31
  check_hash=False, progress=True)
32
  LUTs = torch.load(cache, map_location=torch.device('cpu'))
33
  LUT0.load_state_dict(LUTs["0"])
@@ -37,7 +37,7 @@ LUT0.eval()
37
  LUT1.eval()
38
  LUT2.eval()
39
 
40
- cache = download_cached_file('https://drive.google.com/uc?export=download&id=1rQ_p3NMRFxZ52MOYj0jPewYtD3JQTJGi',
41
  check_hash=False, progress=True)
42
  classifier.load_state_dict(torch.load(cache, map_location=torch.device('cpu')))
43
  classifier.eval()
@@ -55,7 +55,7 @@ if cuda:
55
  Xclassifier = Xclassifier.cuda()
56
 
57
  # Load pretrained models
58
- cache = download_cached_file('https://drive.google.com/uc?export=download&id=1ossTzgbgpZL4Jy5uhiRJDGfCWw9vOv0c',
59
  check_hash=False, progress=True)
60
  XLUTs = torch.load(cache, map_location=torch.device('cpu'))
61
  XLUT0.load_state_dict(XLUTs["0"])
@@ -65,7 +65,7 @@ XLUT0.eval()
65
  XLUT1.eval()
66
  XLUT2.eval()
67
 
68
- cache = download_cached_file('https://drive.google.com/uc?export=download&id=1279CoaqQZK-eK83283MERoRxtRbIgRew',
69
  check_hash=False, progress=True)
70
  Xclassifier.load_state_dict(torch.load(cache, map_location=torch.device('cpu')))
71
  Xclassifier.eval()
27
  classifier = classifier.cuda()
28
 
29
  # Load pretrained models
30
+ cache = download_cached_file('https://czc-checkpoint.oss-cn-hangzhou.aliyuncs.com/bing/sRGB/LUTs.pth',
31
  check_hash=False, progress=True)
32
  LUTs = torch.load(cache, map_location=torch.device('cpu'))
33
  LUT0.load_state_dict(LUTs["0"])
37
  LUT1.eval()
38
  LUT2.eval()
39
 
40
+ cache = download_cached_file('https://czc-checkpoint.oss-cn-hangzhou.aliyuncs.com/bing/sRGB/classifier.pth',
41
  check_hash=False, progress=True)
42
  classifier.load_state_dict(torch.load(cache, map_location=torch.device('cpu')))
43
  classifier.eval()
55
  Xclassifier = Xclassifier.cuda()
56
 
57
  # Load pretrained models
58
+ cache = download_cached_file('https://czc-checkpoint.oss-cn-hangzhou.aliyuncs.com/bing/XYZ/LUTs.pth',
59
  check_hash=False, progress=True)
60
  XLUTs = torch.load(cache, map_location=torch.device('cpu'))
61
  XLUT0.load_state_dict(XLUTs["0"])
65
  XLUT1.eval()
66
  XLUT2.eval()
67
 
68
+ cache = download_cached_file('https://czc-checkpoint.oss-cn-hangzhou.aliyuncs.com/bing/XYZ/classifier.pth',
69
  check_hash=False, progress=True)
70
  Xclassifier.load_state_dict(torch.load(cache, map_location=torch.device('cpu')))
71
  Xclassifier.eval()
models/__pycache__/models_x.cpython-310.pyc ADDED
Binary file (8.57 kB). View file
models/__pycache__/trilinear_test.cpython-310.pyc ADDED
Binary file (8.28 kB). View file