Permalink
Browse files

fixed sort by yaw feeder

  • Loading branch information...
iperov committed Jan 7, 2019
1 parent 3b0b1a7 commit 12dd7fcae584e07ea6f87bbef126ecdac4c2a648
Showing with 3 additions and 3 deletions.
  1. +3 −3 samples/SampleLoader.py
@@ -72,9 +72,9 @@ def upgradeToFaceSamples ( samples ):
return sample_list

@staticmethod
def upgradeToFaceYawSortedSamples( YAW_RAWS ):
def upgradeToFaceYawSortedSamples( samples ):

lowest_yaw, highest_yaw = -32, +32
lowest_yaw, highest_yaw = -256, +256
gradations = 64
diff_rot_per_grad = abs(highest_yaw-lowest_yaw) / gradations

@@ -85,7 +85,7 @@ def upgradeToFaceYawSortedSamples( YAW_RAWS ):
next_yaw = lowest_yaw + (i+1)*diff_rot_per_grad

yaw_samples = []
for s in YAW_RAWS:
for s in samples:
s_yaw = s.yaw
if (i == 0 and s_yaw < next_yaw) or \
(i < gradations-1 and s_yaw >= yaw and s_yaw < next_yaw) or \

0 comments on commit 12dd7fc

Please sign in to comment.