別の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 ")' –