[bug] Fix interpolation of positional embeddings (#378)
Use size instead of scale factor to specify the output size of nn.interpolate(): this avoids any rounding issue leading to mismatching output size and consistently generate the same output size as with the previous kludge (from facebookresearch/dino#8).
Loading
Please register or sign in to comment