Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed an indentation error in func postprocess_result inside base_decoder.py file #299

Open
wants to merge 1 commit into
base: dev-1.x
Choose a base branch
from
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