Moved print statements to predict loop
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -275,6 +275,11 @@ def _predict_loop(generator: Generator, use_dropout: bool, steps_per_epoch: int,
|
|||||||
predictions = vanilla_step(inputs)
|
predictions = vanilla_step(inputs)
|
||||||
|
|
||||||
save_images(inputs, predictions)
|
save_images(inputs, predictions)
|
||||||
|
print("test")
|
||||||
|
print((
|
||||||
|
f"Input shape: {inputs.shape}"
|
||||||
|
f"Predictions shape: {predictions.shape}"
|
||||||
|
))
|
||||||
transformed_predictions = transform_func(predictions, inverse_transforms)
|
transformed_predictions = transform_func(predictions, inverse_transforms)
|
||||||
save_func(transformed_predictions, original_labels, filenames,
|
save_func(transformed_predictions, original_labels, filenames,
|
||||||
batch_nr=batch_counter)
|
batch_nr=batch_counter)
|
||||||
@ -340,10 +345,6 @@ def _predict_save_images(inputs: np.ndarray, predictions: np.ndarray,
|
|||||||
get_coco_cat_maps_func: callable,
|
get_coco_cat_maps_func: callable,
|
||||||
output_path: str, coco_path: str,
|
output_path: str, coco_path: str,
|
||||||
image_size: int) -> None:
|
image_size: int) -> None:
|
||||||
print((
|
|
||||||
f"Input shape: {inputs.shape}"
|
|
||||||
f"Predictions shape: {predictions.shape}"
|
|
||||||
))
|
|
||||||
save_images(inputs, predictions,
|
save_images(inputs, predictions,
|
||||||
output_path, coco_path, image_size,
|
output_path, coco_path, image_size,
|
||||||
get_coco_cat_maps_func, "after-prediction")
|
get_coco_cat_maps_func, "after-prediction")
|
||||||
|
|||||||
Reference in New Issue
Block a user