I would like to input a text prompt in stylegan2.
So far, I've been able to load the generator (G) using
G,D,Gs = load_networks('gdrive:networks/stylegan2-ffhq-config-a.pkl')
which calls a function defined in the pretrained_networks.py file.
Now, I can't figure out how to use the generator in the way I would like.
Specifically, given a text prompt, I suppose I should:
- to encode the text in a numpy array
- to feed the generator with this encoding
but how can I do it?