removed comments
Browse files
app.py
CHANGED
@@ -12,8 +12,6 @@ import matplotlib.pyplot as plt
|
|
12 |
import warnings
|
13 |
warnings.filterwarnings("ignore")
|
14 |
|
15 |
-
# os.system("git clone https://github.com/xuebinqin/DIS")
|
16 |
-
# os.system("mv DIS/IS-Net/* .")
|
17 |
|
18 |
# project imports
|
19 |
from data_loader_cache import normalize, im_reader, im_preprocess
|
@@ -22,11 +20,6 @@ from models import *
|
|
22 |
#Helpers
|
23 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
24 |
|
25 |
-
# Download official weights
|
26 |
-
# if not os.path.exists("saved_models"):
|
27 |
-
# os.mkdir("saved_models")
|
28 |
-
# MODEL_PATH_URL = "https://drive.google.com/uc?id=1KyMpRjewZdyYfxHPYcd-ZbanIXtin0Sn"
|
29 |
-
# gdown.download(MODEL_PATH_URL, "saved_models/isnet.pth", use_cookies=False)
|
30 |
|
31 |
class GOSNormalize(object):
|
32 |
'''
|
|
|
12 |
import warnings
|
13 |
warnings.filterwarnings("ignore")
|
14 |
|
|
|
|
|
15 |
|
16 |
# project imports
|
17 |
from data_loader_cache import normalize, im_reader, im_preprocess
|
|
|
20 |
#Helpers
|
21 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
22 |
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
class GOSNormalize(object):
|
25 |
'''
|