Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,17 +23,17 @@ if not os.path.exists('CodeFormer.pth'):
|
|
23 |
os.system("wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/CodeFormer.pth -P .")
|
24 |
|
25 |
# torch.hub.download_url_to_file(
|
26 |
-
|
27 |
-
|
28 |
# torch.hub.download_url_to_file(
|
29 |
-
|
30 |
-
|
31 |
# torch.hub.download_url_to_file(
|
32 |
-
|
33 |
-
|
34 |
# torch.hub.download_url_to_file(
|
35 |
-
|
36 |
-
|
37 |
|
38 |
# background enhancer with RealESRGAN
|
39 |
model = SRVGGNetCompact(num_in_ch=3, num_out_ch=3, num_feat=64, num_conv=32, upscale=4, act_type='prelu')
|
|
|
23 |
os.system("wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/CodeFormer.pth -P .")
|
24 |
|
25 |
# torch.hub.download_url_to_file(
|
26 |
+
# 'https://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Abraham_Lincoln_O-77_matte_collodion_print.jpg/1024px-Abraham_Lincoln_O-77_matte_collodion_print.jpg',
|
27 |
+
# 'lincoln.jpg')
|
28 |
# torch.hub.download_url_to_file(
|
29 |
+
# 'https://user-images.githubusercontent.com/17445847/187400315-87a90ac9-d231-45d6-b377-38702bd1838f.jpg',
|
30 |
+
# 'AI-generate.jpg')
|
31 |
# torch.hub.download_url_to_file(
|
32 |
+
# 'https://user-images.githubusercontent.com/17445847/187400981-8a58f7a4-ef61-42d9-af80-bc6234cef860.jpg',
|
33 |
+
# 'Blake_Lively.jpg')
|
34 |
# torch.hub.download_url_to_file(
|
35 |
+
# 'https://user-images.githubusercontent.com/17445847/187401133-8a3bf269-5b4d-4432-b2f0-6d26ee1d3307.png',
|
36 |
+
# '10045.png')
|
37 |
|
38 |
# background enhancer with RealESRGAN
|
39 |
model = SRVGGNetCompact(num_in_ch=3, num_out_ch=3, num_feat=64, num_conv=32, upscale=4, act_type='prelu')
|