Skip to content

Commit

Permalink
avoid load colorfile many times
Browse files Browse the repository at this point in the history
  • Loading branch information
hangzhaomit committed Oct 23, 2018
1 parent 0539224 commit 276994b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
import lib.utils.data as torchdata
import cv2

colors = loadmat('data/color150.mat')['colors']


def visualize_result(data, preds, args):
colors = loadmat('data/color150.mat')['colors']
(img, seg, info) = data

# segmentation
Expand Down
3 changes: 2 additions & 1 deletion eval_multipro.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
import cv2
from tqdm import tqdm

colors = loadmat('data/color150.mat')['colors']


def visualize_result(data, preds, args):
colors = loadmat('data/color150.mat')['colors']
(img, seg, info) = data

# segmentation
Expand Down

0 comments on commit 276994b

Please sign in to comment.