tom-roddick / oft

MIT License
202 stars 50 forks source link

AttributeError: 'Tensor' object has no attribute 'bool' #4

Open DasReich opened 5 years ago

DasReich commented 5 years ago

Hi,sorry to bother you.The question is that when i try to run the command "python train.py train --gpu 0", an error occured: "AttributeError: 'Tensor' object has no attribute 'bool'",located in encoder.py,line 149 " mask = grid.new_zeros((self.nclass, depth-1, width-1)).bool()".i don't know how to solve this question.Hope you can help me with the error,thank you.

ranattias commented 5 years ago

Hi, Just starting working on this project.

I don't there yet, but did you manage to solve the issue?

Pendu commented 4 years ago

Update your torch to latest stable version i.e. 1.3. That has solved the same problem I had.

DasReich commented 4 years ago

Update your torch to latest stable version i.e. 1.3. That has solved the same problem I had.

Thanks a lot, I'll have a try.