How to prompt a text in stylegan2

19 views Asked by At

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:

  1. to encode the text in a numpy array
  2. to feed the generator with this encoding

but how can I do it?

0

There are 0 answers