vobecant
commited on
Commit
·
6b106ff
1
Parent(s):
f4da420
Initial commit.
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ from segmenter_model.utils import colorize_one, map2cs
|
|
13 |
|
14 |
# WEIGHTS = './weights/segmenter.pth
|
15 |
WEIGHTS = './weights/segmenter_nusc.pth'
|
|
|
16 |
|
17 |
|
18 |
def blend_images(bg, fg, alpha=0.3):
|
@@ -97,7 +98,7 @@ def remap(seg_pred, ignore=255):
|
|
97 |
|
98 |
def create_model(resnet=False):
|
99 |
weights_path = WEIGHTS
|
100 |
-
variant_path = '{}_variant.yml'.format(weights_path)
|
101 |
|
102 |
print('Use weights {}'.format(weights_path))
|
103 |
print('Load variant from {}'.format(variant_path))
|
|
|
13 |
|
14 |
# WEIGHTS = './weights/segmenter.pth
|
15 |
WEIGHTS = './weights/segmenter_nusc.pth'
|
16 |
+
FULL = True
|
17 |
|
18 |
|
19 |
def blend_images(bg, fg, alpha=0.3):
|
|
|
98 |
|
99 |
def create_model(resnet=False):
|
100 |
weights_path = WEIGHTS
|
101 |
+
variant_path = '{}_variant{}.yml'.format(weights_path, '_full' if FULL else '')
|
102 |
|
103 |
print('Use weights {}'.format(weights_path))
|
104 |
print('Load variant from {}'.format(variant_path))
|
weights/{segmenter_nusc.pth_variant_old.yml → segmenter_nusc.pth_variant_full.yml}
RENAMED
File without changes
|