Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mmflow/apis/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def inference_model(model: torch.nn.Module, img1s: Union[str, np.ndarray],
# there is no need to load annotation.
for t in cfg.pipeline:
if t.get('type') == 'LoadAnnotations':
cfg.test_pipeline.remove(t)
cfg.pipeline.remove(t)

test_pipeline = Compose(cfg.pipeline)
datas = defaultdict(list)
Expand Down
2 changes: 1 addition & 1 deletion mmflow/models/decoders/base_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def postprocess_result(
f[1, :, :] = f[1, :, :] / h_scale
data_samples[i].set_data(
{'pred_' + key: PixelData(**{'data': f})})
return data_samples
return data_samples

def predict_by_feat(self,
flow_results: Tensor,
Expand Down