dalle-mini icon indicating copy to clipboard operation
dalle-mini copied to clipboard

Beam search is broken

Open dreamgonfly opened this issue 2 years ago • 0 comments

To do beam search, I set cond_scale=1.0, turned off do_sample, and set num_beams > 1, then called model.generate().

However, I got the following error.

TypeError: reshape total size must be unchanged, got new_sizes (1, 2) for shape (12,).

Can you help me solve this issue?

dreamgonfly avatar Aug 20 '22 08:08 dreamgonfly