fix error build
Browse files- app.py +0 -2
- requirement.txt +1 -0
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
from fastapi import FastAPI
|
2 |
import os
|
3 |
import shutil
|
4 |
import uuid
|
@@ -8,7 +7,6 @@ import torch
|
|
8 |
from basicsr.archs.rrdbnet_arch import RRDBNet
|
9 |
from gfpgan.utils import GFPGANer
|
10 |
from realesrgan.utils import RealESRGANer
|
11 |
-
import uvicorn
|
12 |
|
13 |
# download weights for RealESRGAN
|
14 |
if not os.path.exists('model_zoo/real/RealESRGAN_x4plus.pth'):
|
|
|
|
|
1 |
import os
|
2 |
import shutil
|
3 |
import uuid
|
|
|
7 |
from basicsr.archs.rrdbnet_arch import RRDBNet
|
8 |
from gfpgan.utils import GFPGANer
|
9 |
from realesrgan.utils import RealESRGANer
|
|
|
10 |
|
11 |
# download weights for RealESRGAN
|
12 |
if not os.path.exists('model_zoo/real/RealESRGAN_x4plus.pth'):
|
requirement.txt
CHANGED
@@ -5,6 +5,7 @@ gfpgan>=1.3.7
|
|
5 |
realesrgan>=0.2.5
|
6 |
numpy
|
7 |
opencv-python
|
|
|
8 |
torchvision
|
9 |
scipy
|
10 |
tqdm
|
|
|
5 |
realesrgan>=0.2.5
|
6 |
numpy
|
7 |
opencv-python
|
8 |
+
opencv-python-headless
|
9 |
torchvision
|
10 |
scipy
|
11 |
tqdm
|