EzrealLee9527
EzrealLee9527
因为eval的时候把ReferenceAttentionControl的do_classifier_free_guidance打开了,train的时候需要重置一下
> > 因为eval的时候把ReferenceAttentionControl的do_classifier_free_guidance打开了,train的时候需要重置一下 > > 代码中训练和测试的 ReferenceAttentionControl 是单独初始化的,他们之间应该没有影响的 > > The `ReferenceAttentionControl` for training and testing is initialized separately, and there should be no impact between them. 测试的初始化把训练的初始化覆盖掉了,并且由于训练是写在初始化而不是forward里所以并不会重置回来,你可以打印下训练时候do_classifier_free_guidance的行为看看,在测试前后是不一致的
> > > > 因为eval的时候把ReferenceAttentionControl的do_classifier_free_guidance打开了,train的时候需要重置一下 > > > > > > > > > 代码中训练和测试的 ReferenceAttentionControl 是单独初始化的,他们之间应该没有影响的 > > > The `ReferenceAttentionControl` for training and testing is initialized separately, and...