From a1d5f62334986ea8dedc97c82c755e44b8cdf651 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 31 May 2019 13:53:09 +0200 Subject: [PATCH] updates --- utils/utils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/utils.py b/utils/utils.py index 08b93792..1a340f2b 100755 --- a/utils/utils.py +++ b/utils/utils.py @@ -492,6 +492,13 @@ def coco_only_people(path='../coco/labels/val2014/'): print(labels.shape[0], file) +def select_best_evolve(path='../../Downloads/evolve*.txt'): # from utils.utils import *; select_best_evolve() + # Find best evolved mutation + for file in sorted(glob.glob(path)): + x = np.loadtxt(file, dtype=np.float32) + print(file, x[x[:, 2].argmax()]) + + def kmeans_targets(path='./data/coco_64img.txt'): # from utils.utils import *; kmeans_targets() with open(path, 'r') as f: img_files = f.read().splitlines()