我如何使用用戶指定的參數從另一個Lua腳本中運行Lua腳本?我將如何使用用戶指定的參數從另一個Lua腳本中運行Lua腳本?
下面的代碼可以工作嗎?其中「content_image」是我指定的輸入圖像(保存到圖像文件或仍然在腳本中)到「deepdream.lua」腳本中,「output_image」是我想要的「deepdream.lua」腳本的輸出在我的Lua腳本中使用。
dofile("deepdream.lua -content_image content_image -output_image output_image")
我要求另一Lua的腳本中運行該腳本可以在這裏找到:https://github.com/bamos/dream-art/blob/master/deepdream.lua
'os.execute(「th deepdream.lua -content_image conte nt_image -output_image output_image「)' –