BAMM icon indicating copy to clipboard operation
BAMM copied to clipboard

Very nice work, About in-between?

Open lxyxl0216 opened this issue 11 months ago • 1 comments

Does the model support editing? included in-between

lxyxl0216 avatar Jan 06 '25 07:01 lxyxl0216

I didn’t clean up the code for editing generation, but the code is already in the evaluation function. Here are some information:

  1. Change edit_task to one of these: "inpainting, outpainting, prefix, suffix"
  2. It will encode the condition tokens and replace [Mask] tokens where to inpaint here
  3. Then it will call the edit function. The model will automatically create masked attention based on the tokens (with [Mask]) and generate tokens autoregressively with condition.

exitudio avatar Jan 06 '25 15:01 exitudio