Commit 110008e3 authored by Richard Vogl's avatar Richard Vogl
Browse files

fix prepare sets

parent 89ed9966
......@@ -2,8 +2,8 @@ import numpy as np
# TODO remove this and load and use real data!
FEAT_SIZE = 300
OUT_SIZE = 80
FEAT_SIZE = 482
OUT_SIZE = 88
FULL_SEQ_LEN = 1000
NUM_SAMPLES_TRAIN = 8
NUM_SAMPLES_VALID = 2
......
......@@ -104,7 +104,11 @@ def posprocess_annotations(times, inst_map=None, offset=0, num_classes=100):
def compute_target_array_from_times(times, fps, num_frames, num_targets, offset=0, soft_targets=False, statistics=None):
if len(times) > 0 and np.max(times, 0)[0] * fps > num_frames:
logging.warning("Maximum time is larger than number of samples - cutting times.")
logging.warning("Maximum time is larger than number of samples - cutting times. "
"maxtime: %f in samples: %d max frames: %d in time %f" % (np.max(times, 0)[0],
np.max(times, 0)[0]*fps,
num_frames,
1.0*num_frames/fps))
if len(times) > 0 and np.max(times, 0)[1] >= num_targets:
logging.warning("Maximum label index is larger than num_targets - cutting labels.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment