Replies: 1 comment
-
Hey @xiong224, you are right. The current version of MMagic does not support DreamBooth with multi prompts. You can modify the training code as follow: input_ids = self.tokenizer(
- prompt,
+ random.sample(self.prompts, latents.shape[0]),
max_length=self.tokenizer.model_max_length,
return_tensors='pt',
padding='max_length',
truncation=True)['input_ids'].to(self.device)
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for your work. I find that the mmagic can only train DreamBooth with a fixed prompt and how can I train DreamBooth with a set of prompts and images? If there is anything I‘ve missed, thanks for reminding me.
Beta Was this translation helpful? Give feedback.
All reactions