Added further debug prints (2nd)
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -191,6 +191,7 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
|
|||||||
batch_size = None
|
batch_size = None
|
||||||
for _ in range(forward_passes_per_image):
|
for _ in range(forward_passes_per_image):
|
||||||
result = np.array(ssd(inputs))
|
result = np.array(ssd(inputs))
|
||||||
|
print(f"shape result: {result.shape}")
|
||||||
if batch_size is None:
|
if batch_size is None:
|
||||||
batch_size = result.shape[0]
|
batch_size = result.shape[0]
|
||||||
if detections is None:
|
if detections is None:
|
||||||
@ -198,6 +199,7 @@ def _predict_one_epoch(dataset: tf.data.Dataset,
|
|||||||
|
|
||||||
for i in range(batch_size):
|
for i in range(batch_size):
|
||||||
batch_item = result[i]
|
batch_item = result[i]
|
||||||
|
print(f"batch item: {batch_item.shape}")
|
||||||
detections[i].extend(batch_item)
|
detections[i].extend(batch_item)
|
||||||
|
|
||||||
observations = np.asarray(_get_observations(detections))
|
observations = np.asarray(_get_observations(detections))
|
||||||
|
|||||||
Reference in New Issue
Block a user