improved-diffusion icon indicating copy to clipboard operation
improved-diffusion copied to clipboard

Missing key(s) in state_dict: "label_emb.weight"

Open coderpracticer opened this issue 1 year ago • 3 comments

when i try to run image_sample.py, i meet this question.Have anyone meet the same question? raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for UNetModel: Missing key(s) in state_dict: "label_emb.weight".

coderpracticer avatar Mar 09 '24 05:03 coderpracticer

你解决了吗。我也遇到了同样的问题,呜呜呜

XM512 avatar Sep 30 '24 04:09 XM512

你解决了吗。我也遇到了同样的问题,呜呜呜

add --num_res_blocks or if you have it already remove it to see if your code works.

mmitchef avatar Sep 30 '24 14:09 mmitchef

你解决了吗。我也遇到了同样的问题,呜呜呜

add --num_res_blocks or if you have it already remove it to see if your code works.

mmitchef avatar Sep 30 '24 14:09 mmitchef