compose-visual-relations icon indicating copy to clipboard operation
compose-visual-relations copied to clipboard

How do I use the pretrained models to generate multiple images using a prompt?

Open sarmientoj24 opened this issue 4 years ago • 2 comments

The instructions in the Github is quite unclear.

sarmientoj24 avatar Dec 23 '21 15:12 sarmientoj24

You can modify demo.py to accomplish that. A prompt must be mapped to a label (see utility functions from our dataset class). Then u can stack the same labels for multiple times to use it as the final input label for generation. Hope that helps.

nanlliu avatar Dec 23 '21 16:12 nanlliu

I still do not understand it. Say, I want to generate 1K images of 'a red square at the left of yellow ball'.

How do I do that?

sarmientoj24 avatar Dec 29 '21 13:12 sarmientoj24