LiheYoung / UniMatch

[CVPR 2023] Revisiting Weak-to-Strong Consistency in Semi-Supervised Semantic Segmentation
https://arxiv.org/abs/2208.09910
MIT License
478 stars 60 forks source link

Question about crop size #111

Open KKaiYH opened 8 months ago

KKaiYH commented 8 months ago

Hello, author: If I want to use Crop size 512, in evaluate function, col += int(grid 2 / 3) and row += int(grid 2 / 3) in sliding_window, this 2/3 will cause code error because of non-integer division, how much will the author suggest to set? image

79zzz commented 8 months ago

或许设置原始的321就不错呢

LiheYoung commented 6 months ago

Hi, could you please detail the code error? Why would int(grid * 2 / 3) cause the error when grid is set as 512?