Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: item is boolean #39

Closed
Jarrome opened this issue Apr 14, 2021 · 1 comment
Closed

Bug: item is boolean #39

Jarrome opened this issue Apr 14, 2021 · 1 comment

Comments

@Jarrome
Copy link

Jarrome commented Apr 14, 2021

in /workspace/sign/Box_Discretization_Network-master/maskrcnn_benchmark/structures/segmentation_mask.py:427

selected_polygons.append(self.polygons[i])

But i is always True

I guess this is a bug?

@Jarrome
Copy link
Author

Jarrome commented Apr 14, 2021

Now I find when I use torch1.4, the item is tensor of booleans.

But when turn to torch1.1, the item is tensor of uint8s.

Anyway, it seems the code function works fine.

conda install pytorch=1.0 torchvision=0/2 cudatoolkit=10.0 -c pytorch
cd Box_Discretization_Network
CUDA_HOME=/usr/local/cuda-10.0 python setup.py build develop

@Jarrome Jarrome closed this as completed Apr 14, 2021
@Jarrome Jarrome changed the title Bug: Bug: item is boolean Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant