yabufarha / ms-tcn

Other
214 stars 58 forks source link

Code problem #37

Open BALDman66 opened 2 years ago

BALDman66 commented 2 years ago

I got this error using PYTHon3, I tried using Python2, but 2 now seems unable to install torch
image

planck-fanqi commented 2 years ago

In file batch_gen.py, at line 49, length_of_sequences = list(map(len, batch_target))

bqdeng commented 2 years ago

Just change the map to list first. To be honest, this is because Python 3 is different from Python 2. You can change this sentence to, length of sequences = list(map(len, batch_target))