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

[Fix] fix types of exceptions in demos #1372

Merged
merged 1 commit into from
Oct 31, 2022
Merged
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
fix types of exceptions in demos
  • Loading branch information
gaoyang07 committed Oct 27, 2022
commit 89fe102e20058afb39be824164202019cbaa4629
2 changes: 1 addition & 1 deletion mmedit/apis/restoration_video_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def restoration_video_inference(model,
tmp_pipeline = []
for pipeline in test_pipeline:
if pipeline['type'] not in [
'GenerateSegmentIndices', 'LoadImageFromFileList'
'GenerateSegmentIndices', 'LoadImageFromFile'
]:
tmp_pipeline.append(pipeline)
test_pipeline = tmp_pipeline
Expand Down
3 changes: 1 addition & 2 deletions mmedit/apis/video_interpolation_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ def video_interpolation_inference(model,
tmp_pipeline = []
for pipeline in test_pipeline:
if pipeline['type'] not in [
'GenerateSegmentIndices', 'LoadImageFromFileList',
'LoadImageFromFile'
'GenerateSegmentIndices', 'LoadImageFromFile'
]:
tmp_pipeline.append(pipeline)
test_pipeline = tmp_pipeline
Expand Down