-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
the drop_size cannot be higher than 5? #20
Comments
The block size can be bigger for sure. It is being tested in the unit tests. What is the shape of your input? |
@miguelvr I test like this
and get the error:
|
That input is too small for a 9x9 block. The Bernoulli mask is going to be computed on a subset of your input of shape (W - bsize // 2, H - bsize // 2) |
I try bigger size input, still get the error. |
Are you using the last version? I'll check that tomorrow |
Please use the bleeding edge version from github now, it should be fixed in #21 I'll do a version bump soon and upload to pypi, in order to install from pip |
should be now in pypi |
dropblock/dropblock/dropblock.py
Line 78 in 04b759f
the implement of computer block mask using conv1d is to handle with the overlapped? and the output of _computer_block_mask must have the same size with x, right?
but when I try block_size=7, the output of block_block_mask is [N, 1, 1]. and when I try block_size=9, I will get an error.
In the function of computer block mask, after conv2d, the size of height and weight is
mask_size + 2*(block_size//2+1) - block_size + 1
,the height and weight of input x is
mask_size + block_size//2
.and the former must be larger than the latter, so the
(block_size//2)
connot higher than 3?The text was updated successfully, but these errors were encountered: