LiheYoung / UniMatch

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

Question about crop size #111

Open KKaiYH opened 7 months ago

KKaiYH commented 7 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 6 months ago

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

LiheYoung commented 5 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?