What I've done is:
1) Navigate to the folder char-rnn is in
2) "th train.lua <parameters>". You should start seeing lines telling you progress in training
3) Periodically check on your output folder, you should start to see checkpoint files every so often.
4) "th sample.lua cv/some_checkpoint.t7 -gpuid -1" will then spit out 2000 characters worth of generated cards. You might also try appending some various parameters. -temperature <number between 0 and 1> tells it how risky to be with its guesses. -length <number> tells it to generate that many characters instead of 200.
Hmm. Whenever I run it like that I get
th train.lua -data_dir data/Formatted -gpuid -1 -eval_val_every_3600
/home/josh/torch/install/bin/luajit: cannot open train.lua: No such file or directory
stack traceback:
[C]: in function 'dofile'
...josh/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
[C]: at 0x0804d6d0
I'm not sure exactly what this error means; the train.lua file is on the computer, and I'm not sure what else could be the problem, considering the "no such file or directory" bit. Do you have any ideas?
What commands am I supposed to run? Right now, I'm doing this:
Run command "th"
Torch startup stuff comes up (ASCII Logo, etc.)
Prompt changes to th>
Run command "th train.lua -data_dir data/Formatted -gpuid -1 -eval_val_every_3600
Prompt changes to ..>
which seems right. However, I don't know what to do to get cards from the RNN from here. Help please?
Sorry for not knowing anything about this, I've never tried to do anything this complex with a computer before, so I'm way out of my depth.
Pre-banning i had an awful game 1 against a pod player. Nothing but a mutavault and an aether vial with 1 counter. He sacs his 2 CMC wall to fetch a harmonic sliver to destroy my vial leaving me helpless.
I responded by vialing in a striking sliver hitting the pod. The look on his face was priceless and i managed to stabilize winning the game.
Striking Sliver doesn't hit Pod. Perhaps you meant some other card?
His opponent had a Harmonic Sliver out which gives the ability to destroy artifacts or enchantments to all Slivers.
Oh yeah old Slivers. That's actually super-amazing.
Pre-banning i had an awful game 1 against a pod player. Nothing but a mutavault and an aether vial with 1 counter. He sacs his 2 CMC wall to fetch a harmonic sliver to destroy my vial leaving me helpless.
I responded by vialing in a striking sliver hitting the pod. The look on his face was priceless and i managed to stabilize winning the game.
Striking Sliver doesn't hit Pod. Perhaps you meant some other card?
I finally figured out how to get my computer to play nice with Torch. I'll probably be running this program for 72-ish hours straight. Wish me luck!
I particularly love how the planeswalkers generated above have regular planeswalker subtypes, so Geral is actually like an alternate-timeline version of Sorin (wait, wasn't this basically the plot of Tarkir block?)
EDIT: Also, Sorin, Lord of Innistrad is actually Gideon.
So, I think I found the problem with my installation. When I run the last command to install Torch, I get a bunch of "Error: No such file or directory" when it tries to install Luarocks.
Very odd. Can you share with us the specific error messages that you're getting and what you're doing when you're getting them? As in, copy and paste the text from the terminal?
cd ~/torch; ./install.sh
Prefix set to /home/joshua/torch/install
-- Found readline library
-- LuaJIT Target: x86
-- LuaJIT target x86
-- Configuring done
-- Generating done
-- Build files have been written to: /home/joshua/torch/build
[ 3%] Built target minilua
[ 26%] Built target buildvm
[ 61%] Built target libluajit
Linking C executable luajit
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_BC_POW':
buildvm_x86.dasc:(.text+0x84b): undefined reference to `lj_wrap_pow'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_log':
buildvm_x86.dasc:(.text+0x269c): undefined reference to `lj_wrap_log'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_log10':
buildvm_x86.dasc:(.text+0x26cb): undefined reference to `lj_wrap_log10'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_exp':
buildvm_x86.dasc:(.text+0x26fa): undefined reference to `lj_wrap_exp'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_sin':
buildvm_x86.dasc:(.text+0x2729): undefined reference to `lj_wrap_sin'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_cos':
buildvm_x86.dasc:(.text+0x2758): undefined reference to `lj_wrap_cos'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_tan':
buildvm_x86.dasc:(.text+0x2787): undefined reference to `lj_wrap_tan'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_asin':
buildvm_x86.dasc:(.text+0x27b6): undefined reference to `lj_wrap_asin'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_acos':
buildvm_x86.dasc:(.text+0x27e5): undefined reference to `lj_wrap_acos'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_atan':
buildvm_x86.dasc:(.text+0x2814): undefined reference to `lj_wrap_atan'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_sinh':
buildvm_x86.dasc:(.text+0x2843): undefined reference to `lj_wrap_sinh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_cosh':
buildvm_x86.dasc:(.text+0x2872): undefined reference to `lj_wrap_cosh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_tanh':
buildvm_x86.dasc:(.text+0x28a1): undefined reference to `lj_wrap_tanh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_pow':
buildvm_x86.dasc:(.text+0x28e5): undefined reference to `lj_wrap_pow'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_atan2':
buildvm_x86.dasc:(.text+0x2929): undefined reference to `lj_wrap_atan2'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_fmod':
buildvm_x86.dasc:(.text+0x296d): undefined reference to `lj_wrap_fmod'
collect2: error: ld returned 1 exit status
make[2]: *** [exe/luajit-rocks/luajit-2.1/luajit] Error 1
make[1]: *** [exe/luajit-rocks/luajit-2.1/CMakeFiles/luajit.dir/all] Error 2
make: *** [all] Error 2
./install.sh: line 64: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 67: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 68: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 69: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 71: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 72: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 73: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 74: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 75: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 76: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 77: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 78: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 79: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 80: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 81: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 82: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 83: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 93: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 94: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 95: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 96: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 97: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 98: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 99: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 100: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 101: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 102: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 105: /home/joshua/torch/install/bin/luarocks: No such file or directory
Do you want to automatically prepend the Torch install location
to PATH and LD_LIBRARY_PATH in your /home/joshua/.bashrc? (yes/no)
[yes] >>>
Up until this point, I haven't had any errors occur.
Also, the image generation thing sounds awesome. I can't wait to see how it works.
So, I think I found the problem with my installation. When I run the last command to install Torch, I get a bunch of "Error: No such file or directory" when it tries to install Luarocks.
I'm currently running on 64-bit, but I had the same problem on a 32-bit. It's possible that I installed something wrong, since I only used the 32-bit for my first attempt, so I'll go try it again.
Hey guys. I've been stalking this thread for a while, although I've never posted on it yet. I'm trying to install the thing on a Ubuntu machine, but I can't get any of the Torch things to install right. No errors popped up during installation, but when I try to use the "luarocks install x" commands, I keep getting an error. Any ideas?
Welcome! If you're having a problem, could you elaborate on what error that you're seeing? We might have encountered it before and found a way around it.
I'm getting a "No results matching query were found" error on both of the "luarocks install" commands.
Hey guys. I've been stalking this thread for a while, although I've never posted on it yet. I'm trying to install the thing on a Ubuntu machine, but I can't get any of the Torch things to install right. No errors popped up during installation, but when I try to use the "luarocks install x" commands, I keep getting an error. Any ideas?
No. This set of cards is "marked". If he sees the card on the back, then he will know the other side. Additionally, he could use one side in one scenario, and another side in other scenarios, basically giving him a "split" card where he shouldn't have one.
With just those cards involved, stack ordering doesn't matter much here actually. Though it may matter for other cards exiled with Eye of the Storm at which point you get to cast them, but that can get complicated real fast, so I'll stick to your question for now.
The Unwilling Recruit copies targeting Golems will be created anyway; even if the original Recruit isnt on the stack anymore, the game will use last known information about it to make the copies. They'll use the same value for X.
Ascension will copy the original Unwilling Recruit only once, even if you target a Golem with it; that won't trigger Precursor since the copy isn't cast. It will also copy each spell cast via Eye of the Storm once.
In addition to Ascension, the card copies cast via Eye of the Storm also trigger Precursor Golem if they're cast targeting only a single Golem, though for Unwilling Recruit, the effect probably would be redundant here, as X will be 0 for the cast via Eye.
I cast Unwilling Recruit targeting some Golem while I control Precursor Golem, Eye of the Storm and an active Pyromancer Ascension. I want to stack my triggers such that the Eye of the Storm trigger resolves before the copy triggers. If I do, will my copy triggers still work? It seems like they should, but the spell they are copying isn't there anymore, so I'm not sure.
Barrin + Precursor + Mana Echoes is infinite, and remains so even if you get them all out without using Omniscience.
What is Time and Tide supposed to do when none of your cards have phasing, and why bother with storm spells in parallel with Precursor Golem as copy mechanisms that don't build off each other?
Yeah you're right. Also, apparently I can't read correctly. I was trying to "hide" the tokens from Cowardice and Dual Nature with Time and Tide, but I think that that's not going to work (EDIT: This definitely won't work, because apparently phased-out tokens go poof). Storm spells were just there because I was trying to get to 60, and although they don't synergize with Precursor Golem, they're good with Eye of the Storm and the Retraction Helix stuff. The particular Storm spells I was using are also decent with Cowardice, although I think that I would probably end up cutting both the Storm spells and Cowardice if I needed to make Precursor Golem work.
Hmm. Whenever I run it like that I get
th train.lua -data_dir data/Formatted -gpuid -1 -eval_val_every_3600
/home/josh/torch/install/bin/luajit: cannot open train.lua: No such file or directory
stack traceback:
[C]: in function 'dofile'
...josh/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
[C]: at 0x0804d6d0
What commands am I supposed to run? Right now, I'm doing this:
Run command "th"
Torch startup stuff comes up (ASCII Logo, etc.)
Prompt changes to th>
Run command "th train.lua -data_dir data/Formatted -gpuid -1 -eval_val_every_3600
Prompt changes to ..>
which seems right. However, I don't know what to do to get cards from the RNN from here. Help please?
Sorry for not knowing anything about this, I've never tried to do anything this complex with a computer before, so I'm way out of my depth.
Oh yeah old Slivers. That's actually super-amazing.
Striking Sliver doesn't hit Pod. Perhaps you meant some other card?
I particularly love how the planeswalkers generated above have regular planeswalker subtypes, so Geral is actually like an alternate-timeline version of Sorin (wait, wasn't this basically the plot of Tarkir block?)
EDIT: Also, Sorin, Lord of Innistrad is actually Gideon.
cd ~/torch; ./install.sh
Prefix set to /home/joshua/torch/install
-- Found readline library
-- LuaJIT Target: x86
-- LuaJIT target x86
-- Configuring done
-- Generating done
-- Build files have been written to: /home/joshua/torch/build
[ 3%] Built target minilua
[ 26%] Built target buildvm
[ 61%] Built target libluajit
Linking C executable luajit
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_BC_POW':
buildvm_x86.dasc:(.text+0x84b): undefined reference to `lj_wrap_pow'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_log':
buildvm_x86.dasc:(.text+0x269c): undefined reference to `lj_wrap_log'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_log10':
buildvm_x86.dasc:(.text+0x26cb): undefined reference to `lj_wrap_log10'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_exp':
buildvm_x86.dasc:(.text+0x26fa): undefined reference to `lj_wrap_exp'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_sin':
buildvm_x86.dasc:(.text+0x2729): undefined reference to `lj_wrap_sin'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_cos':
buildvm_x86.dasc:(.text+0x2758): undefined reference to `lj_wrap_cos'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_tan':
buildvm_x86.dasc:(.text+0x2787): undefined reference to `lj_wrap_tan'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_asin':
buildvm_x86.dasc:(.text+0x27b6): undefined reference to `lj_wrap_asin'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_acos':
buildvm_x86.dasc:(.text+0x27e5): undefined reference to `lj_wrap_acos'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_atan':
buildvm_x86.dasc:(.text+0x2814): undefined reference to `lj_wrap_atan'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_sinh':
buildvm_x86.dasc:(.text+0x2843): undefined reference to `lj_wrap_sinh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_cosh':
buildvm_x86.dasc:(.text+0x2872): undefined reference to `lj_wrap_cosh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_tanh':
buildvm_x86.dasc:(.text+0x28a1): undefined reference to `lj_wrap_tanh'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_pow':
buildvm_x86.dasc:(.text+0x28e5): undefined reference to `lj_wrap_pow'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_atan2':
buildvm_x86.dasc:(.text+0x2929): undefined reference to `lj_wrap_atan2'
CMakeFiles/luajit.dir/lj_vm.s.o: In function `lj_ff_math_fmod':
buildvm_x86.dasc:(.text+0x296d): undefined reference to `lj_wrap_fmod'
collect2: error: ld returned 1 exit status
make[2]: *** [exe/luajit-rocks/luajit-2.1/luajit] Error 1
make[1]: *** [exe/luajit-rocks/luajit-2.1/CMakeFiles/luajit.dir/all] Error 2
make: *** [all] Error 2
./install.sh: line 64: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 67: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 68: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 69: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 71: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 72: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 73: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 74: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 75: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 76: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 77: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 78: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 79: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 80: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 81: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 82: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 83: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 93: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 94: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 95: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 96: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 97: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 98: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 99: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 100: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 101: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 102: /home/joshua/torch/install/bin/luarocks: No such file or directory
./install.sh: line 105: /home/joshua/torch/install/bin/luarocks: No such file or directory
Do you want to automatically prepend the Torch install location
to PATH and LD_LIBRARY_PATH in your /home/joshua/.bashrc? (yes/no)
[yes] >>>
Also, the image generation thing sounds awesome. I can't wait to see how it works.
Thanks!
I'm getting a "No results matching query were found" error on both of the "luarocks install" commands.
Thank you! I knew that Pyromancer Ascension and Precursor Golem didn't interact, but I wanted to make sure that I could get Unwilling Recruit copies with the original X-value.
I cast Unwilling Recruit targeting some Golem while I control Precursor Golem, Eye of the Storm and an active Pyromancer Ascension. I want to stack my triggers such that the Eye of the Storm trigger resolves before the copy triggers. If I do, will my copy triggers still work? It seems like they should, but the spell they are copying isn't there anymore, so I'm not sure.
Thanks!
Yeah you're right. Also, apparently I can't read correctly. I was trying to "hide" the tokens from Cowardice and Dual Nature with Time and Tide, but I think that that's not going to work (EDIT: This definitely won't work, because apparently phased-out tokens go poof). Storm spells were just there because I was trying to get to 60, and although they don't synergize with Precursor Golem, they're good with Eye of the Storm and the Retraction Helix stuff. The particular Storm spells I was using are also decent with Cowardice, although I think that I would probably end up cutting both the Storm spells and Cowardice if I needed to make Precursor Golem work.
But Goyf is already blue . . .