fix sort by best.

This commit is contained in:
Colombo 2020-02-24 20:52:02 +04:00
parent 58deb2bed1
commit d65ff888cd

View file

@ -564,7 +564,8 @@ def sort_best(input_path, include_by_blur=True):
grads = 128
imgs_per_grad = round (target_count / grads)
grads_space = np.linspace (-math.pi / 2, math.pi / 2,grads)
#instead of math.pi / 2, using -1.2,+1.2 because actually maximum yaw for 2DFAN landmarks are -1.2+1.2
grads_space = np.linspace (-1.2, 1.2,grads)
yaws_sample_list = [None]*grads
for g in io.progress_bar_generator ( range(grads), "Sort by yaw"):