@@ -2631,7 +2631,7 @@ def transform(self, results: dict) -> dict:
2631
2631
retrieve_img = retrieve_results ['img' ]
2632
2632
2633
2633
jit_factor = random .uniform (* self .ratio_range )
2634
- is_filp = random .uniform (0 , 1 ) > self .flip_ratio
2634
+ is_flip = random .uniform (0 , 1 ) > self .flip_ratio
2635
2635
2636
2636
if len (retrieve_img .shape ) == 3 :
2637
2637
out_img = np .ones (
@@ -2658,7 +2658,7 @@ def transform(self, results: dict) -> dict:
2658
2658
int (out_img .shape [0 ] * jit_factor )))
2659
2659
2660
2660
# 4. flip
2661
- if is_filp :
2661
+ if is_flip :
2662
2662
out_img = out_img [:, ::- 1 , :]
2663
2663
2664
2664
# 5. random crop
@@ -2684,7 +2684,7 @@ def transform(self, results: dict) -> dict:
2684
2684
if self .bbox_clip_border :
2685
2685
retrieve_gt_bboxes .clip_ ([origin_h , origin_w ])
2686
2686
2687
- if is_filp :
2687
+ if is_flip :
2688
2688
retrieve_gt_bboxes .flip_ ([origin_h , origin_w ],
2689
2689
direction = 'horizontal' )
2690
2690
@@ -3728,7 +3728,7 @@ def transform(self, results: dict) -> dict:
3728
3728
with_mask = True if 'gt_masks' in results else False
3729
3729
3730
3730
jit_factor = random .uniform (* self .ratio_range )
3731
- is_filp = random .uniform (0 , 1 ) > self .flip_ratio
3731
+ is_flip = random .uniform (0 , 1 ) > self .flip_ratio
3732
3732
3733
3733
if len (retrieve_img .shape ) == 3 :
3734
3734
out_img = np .ones (
@@ -3755,7 +3755,7 @@ def transform(self, results: dict) -> dict:
3755
3755
int (out_img .shape [0 ] * jit_factor )))
3756
3756
3757
3757
# 4. flip
3758
- if is_filp :
3758
+ if is_flip :
3759
3759
out_img = out_img [:, ::- 1 , :]
3760
3760
3761
3761
# 5. random crop
@@ -3785,7 +3785,7 @@ def transform(self, results: dict) -> dict:
3785
3785
if self .bbox_clip_border :
3786
3786
retrieve_gt_bboxes .clip_ ([origin_h , origin_w ])
3787
3787
3788
- if is_filp :
3788
+ if is_flip :
3789
3789
retrieve_gt_bboxes .flip_ ([origin_h , origin_w ],
3790
3790
direction = 'horizontal' )
3791
3791
if with_mask :
0 commit comments