2017-05-11 29 views
0

因爲我不習慣lua,所以這個錯誤很難解決。任何人都可以給我一個幫助... enter image description herein function'error'/root/torch/install/share/lua/5.1/trepl/init.lua:389:in function'require'

+0

[根@ deeplearn3 openface]#./demos/ compare.py images/examples/{lennon-1.jpg,clapton-1.jpg} ... class nn.Decorator已被分配父級 堆棧回溯: \t [C]:in function'error ' \t/root/torch/insta l/share/lua/5.1/trepl/init.lua:389:在函數'require'中 \t ... lib/python2.7/site-packages/openface/openface_server.lua:20:在主塊中 \t [ C]:in function'dofile' \t/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150:in main chunk \t [C]:at 0x00405810 – clh2007

+0

I have a類似的問題,但我得到的消息:'''糟糕的參數#2(無效的父類名nn.Decorator)'''。在這裏發佈一個問題:https://github.com/Element-Research/dpnn/issues/91 – iacolippo

回答

1

我也收到這個錯誤。原因是由於某些模塊已從rnndpnn移至nn

我已經創建了一個必要更改的拉取請求,一旦它們合併,您應該更新dpnn$ luarocks install dpnn,你應該很好去。

pull請求是在這裏:https://github.com/Element-Research/dpnn/pull/90

如果你不想等待被整合這些變化,然後運行以下命令:

$ git clone [email protected]:richardassar/dpnn.git 
$ git checkout remove_duplicate_modules 
$ luarocks make rocks/dpnn-scm-1.rockspec 
+0

變更已合併https://github.com/Element-Research/dpnn/pull/90#event-1078673270 你應該重新安裝'dpnn'(和'rnn'和'nn'好的措施),問題應該消失。 –

+0

使用你的方法,問題解決了,非常感謝 – clh2007