nickhuang1996 / HJL-re-id

A awesome project for person re-id. There are re-implements of PCB, MGN, MDRS(ours), PGFA, Pyramidal and HOReID.
MIT License
53 stars 17 forks source link

(PyTorch0.4.0) AttributeError: module 'torch' has no attribute 'bool' #6

Open D77-d77 opened 4 years ago

D77-d77 commented 4 years ago

@nickhuang1996 Hi, I find that your code supports torch 0.4.0, but when I train MDRS in triplet loss, it occurs error: AttributeError: module 'torch' has no attribute 'bool'.😭 Please fix this bugs. Or does I get high torch version?? Please reply kindly.

nickhuang1996 commented 4 years ago

@hhhjjjooo Hi, torch versions update quickly so torch 0.4.0 may have some bugs. You can try .bool() or .byte() in future versions.😉

D77-d77 commented 4 years ago

@nickhuang1996 Thanks!! I have installed torch 1.0.1 and test your models. These are much useful for my studies!!😉