Skip to content

Commit

Permalink
[Fix] fix test of Vid4 datasets bug (#1293)
Browse files Browse the repository at this point in the history
* [Fix] fix test of Vid4 datasets bug

* Update tof_x4_official_vimeo90k.py

* Update tdan_x4_1xb16-lr1e-4-400k_vimeo90k-bd.py

* Update tdan_test_config.py
  • Loading branch information
Z-Fran authored Oct 14, 2022
1 parent e25023b commit 2547173
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions configs/_base_/datasets/basicvsr_test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@
metainfo=dict(dataset_type='udm10', task_name='vsr'),
data_root=udm10_data_root,
data_prefix=dict(img='BDx4', gt='GT'),
num_input_frames=15,
pipeline=udm10_pipeline))

udm10_evaluator = [
Expand Down Expand Up @@ -138,8 +137,6 @@
data_prefix=dict(img='BDx4', gt='GT'),
ann_file='meta_info_Vid4_GT.txt',
depth=1,
num_input_frames=7,
fixed_seq_len=7,
pipeline=vid4_pipeline))

vid4_bi_dataloader = dict(
Expand All @@ -154,8 +151,6 @@
data_prefix=dict(img='BIx4', gt='GT'),
ann_file='meta_info_Vid4_GT.txt',
depth=1,
num_input_frames=7,
fixed_seq_len=7,
pipeline=vid4_pipeline))

vid4_bd_evaluator = [
Expand Down
2 changes: 0 additions & 2 deletions configs/basicvsr/basicvsr_2xb4_vimeo90k-bd.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
data_prefix=dict(img='BDx4', gt='GT'),
ann_file='meta_info_Vid4_GT.txt',
depth=1,
num_input_frames=7,
fixed_seq_len=7,
pipeline=val_pipeline))

val_evaluator = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
metainfo=dict(dataset_type='ntire21_track1', task_name='vsr'),
data_root='data/NTIRE21_decompression_track1',
data_prefix=dict(img='LQ', gt='GT'),
num_input_frames=15,
pipeline=test_pipeline))

test_evaluator = [
Expand Down
2 changes: 2 additions & 0 deletions mmedit/datasets/transforms/generate_frame_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ def transform(self, results):
self.sequence_length = results['sequence_length']
num_input_frames = results.get('num_input_frames',
self.sequence_length)
if num_input_frames is None:
num_input_frames = self.sequence_length

# randomly select a frame as start
if self.sequence_length - num_input_frames * interval < 0:
Expand Down

0 comments on commit 2547173

Please sign in to comment.