Skip to content
Snippets Groups Projects
Commit 5b506fa0 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Squeeze is required for multi-dimensional arrays.

parent 35d2c0dd
No related branches found
No related tags found
No related merge requests found
...@@ -2538,9 +2538,9 @@ class NetworkInference(BaseConfig): ...@@ -2538,9 +2538,9 @@ class NetworkInference(BaseConfig):
batch + 1, len(self.dataloader)) batch + 1, len(self.dataloader))
# check if tensor is on gpu and convert to numpy array # check if tensor is on gpu and convert to numpy array
inputs = inputs.cpu().numpy().squeeze(axis=0) inputs = inputs.cpu().numpy().squeeze()
labels = labels.cpu().numpy().squeeze(axis=0) labels = labels.cpu().numpy().squeeze()
prdctn = prdctn.cpu().numpy().squeeze(axis=0) prdctn = prdctn.cpu().numpy().squeeze()
# check whether to reconstruct the scenes of a dataset # check whether to reconstruct the scenes of a dataset
if self.predict_scene: if self.predict_scene:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment