-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to use from-to mode #35
Comments
Sorry, run it with just the -c and -d (and possible -g) arguments and it will prompt you for the "mode" and then other paths. |
Thanks, @herobd. That was what I was trying to describe in the 2nd half of my query above. I ran it just with -c and -d and -g arguments and got the 2nd code block you see above (with "KeyError"). |
Sorry I somehow totally missed the second part of your post. What checkpoint are you using? |
I'm using: IAM_weights/IAM_auto_2tight_newCTC/checkpoint-iteration60000.pth. (But I'm not partial to it. I have no clue what the difference is between one and the next.) |
That is the auto-encoder weights. |
Sorry, I should have made the naming more obvious. |
So I used the weights you pointed out above, and it just ran and ran--for 460 minutes until I just stopped it. No prompt, no readout (in my jupyter notebook), no output. Any idea what I'm doing wrong? |
The directory specified with |
Thanks. There was no terminal output, except something regarding me terminating it (^C...). And -d is definitely not empty. Anyways, I have an update. I was setting -g to 0. I didn't realize 0 is assigned to my integrated graphics. So I set -g to 1, which points to my gpu card. Here is the terminal output I'm getting now:
I'm brand new to using CUDA and gpu. I'm not at all sure what's going wrong. |
Okay. Sorry for the confusion. Two things.
So I'm back to the original problem where it just runs and runs, no terminal output. I will try the "R" option, with -s next. |
@herobd, you said:
I thought you meant the So...what I was trying to describe above is that when I run
nothing happens. It just keeps going until I So, per your suggestion, I went to try the "R" option, but figured the same thing would happen (ie, that no prompt would appear and it would just keep running and running). Nevertheless, I ran
It did behave differently. After 4 seconds, I got the terminal output below:
|
Hmm. When you don't provide the styles, you might try putting in some print statements before generate.py line 260 (when it should prompt you for the mode) so see where it's spinning. Also, I'd recommeded running without GPU (no -g) to start with. It should get to the mode selection without any delay. Add -g back once you're able to start generating. The error when adding the style pickle might be due to me not testing on Windows. I had it glob for the pickle files (I don't remember exactly why now) and I don't know if Windows does globs the same way. You should be able to take the glob stuff out (216-218) and just set |
Thanks for the feedback. I put a bunch of print statements in generate.py. None printed out. I even put one on line 1, and it didn't print anything. |
You were getting other errors from the program. Is something capturing the std out? |
Sorry. I'm not familiar with that and googling didn't help me. I'm not sure what you're asking. 😿 What should I be looking for? |
Okay. Please see if this is correct. I put
|
You need stdout to display in your terminal to interact with the script. The text you see in stdout.txt is prompting you to input the mode. I'm not sure why it isn't displaying in your terminal by default. I don't know Windows very well. A work around could be to hard code your choices, replacing the |
Thanks. Your reply helped me to finally track down that my problem had to do with using a jupyter notebook. I was expecting the prompting to show in the code output block below the command. I don't understand it all, but it doesn't work that way in jupyter. So I ran from a normal terminal, and I finally got the prompt. I chose from-to, then entered image path 1 & 2 and text to generate. Then the same prompt showed up again. What do I do at that point? And how do I see my results? (I tried "quit." Then the prompt |
That should mean it generated the images. Be sure the directory specified by |
Sorry. I should have looked first. I just figured I was doing something wrong. The output was there. Thank you! (What is the correct response to |
I think that's the index in the data set to sample a style from. |
Hi. I'm trying to use the "from-to" mode described in the README.md's "Generating images using generate.py." I figured the argument would be
-f path/to/image1 path/to/image2 path/to/text
.The output is
The list of potential arguments (above) seemed odd to me, since there is no "from-to" or "random" mentioned. So then I thought maybe I get prompted later in some way for these modes. So I ran it without the
-f
.This returned
I poked around in the code, especially looking for instances of
num_char
andnum_class
, but couldn't come up with anything enlightening. Any help would be much appreciated.The text was updated successfully, but these errors were encountered: