When i try to run extract_feature.py with --multiscales option, i got first following error
"d2-net/lib/pyramid.py", line 45, in process_multiscale
banned = F.interpolate(banned.float(), size=[h, w]).bool()
AttributeError: 'Tensor' object has no attribute 'bool'
Then i changed it to banned = F.interpolate(banned.float(), size=[h, w]).to(torch.bool) and worked. And next i got this error:
File "extract_features.py", line 119, in <module>
model
File "d2-net/lib/pyramid.py", line 46, in process_multiscale
detections = torch.min(detections, ~banned)
TypeError: ~ (operator.invert) is only implemented on byte tensors
I wonder which pytorch are you using? My current environment:
The repository was recently updated for PyTorch 1.2+ which added support for boolean tensors. Let me know if you run into any issues on a more recent version.
Hi @mihaidusmanu ,
When i try to run extract_feature.py with --multiscales option, i got first following error
Then i changed it to
banned = F.interpolate(banned.float(), size=[h, w]).to(torch.bool)
and worked. And next i got this error:I wonder which pytorch are you using? My current environment: