torch / torch7

http://torch.ch
Other
9k stars 2.38k forks source link

class nn.DistanceRatioCriterion has been already assigned a parent class #986

Open ygyuan opened 7 years ago

ygyuan commented 7 years ago

Hi all,

I installed Lua following [http://torch.ch/docs/getting-started.html#_ ] , and installed all required packages, but the Lua crashed when I tried to train the model.

the error message is:

lua: /home3/yyg/torch/install/share/lua/5.2/trepl/init.lua:389: /home3/yyg/torch/install/share/lua/5.2/torch/init.lua:102: class nn.DistanceRatioCriterion has been already assigned a parent class

stack traceback:
    [C]: in function 'error'
    /home3/yyg/torch/install/share/lua/5.2/trepl/init.lua:389: in function 'require'
    Main.lua:8: in main chunk
    [C]: in ?

As I'm a rookie on Torch, I'm really curious about why this would happen.

Thanks a lot!

CP121 commented 7 years ago

I have the same issue, have you solved it?

ygyuan commented 7 years ago

Not yet! Maybe it conflicted between two classes. I didn't meet this problem by using an older version of torch7

2017-04-06 12:57 GMT+08:00 JWGS1 notifications@github.com:

I have the same issue, have you solved it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/torch/torch7/issues/986#issuecomment-292069004, or mute the thread https://github.com/notifications/unsubscribe-auth/AKNLe2gHvrdbFAd3a5LaybmWQmhJls6Zks5rtHCcgaJpZM4Mp0E5 .

gkv91 commented 7 years ago

I am also facing a similar problem while training Deepmask. The error is like this "class nn.SpatialSymmetricPadding has been already assigned a parent class". Did you solved the problem?