mirror of
https://github.com/storytold/FineTrainers-Conditioning.git
synced 2026-10-29 09:07:10 +00:00
Adding in the conditioned transformer 3d model
This commit is contained in:
@@ -82,7 +82,8 @@ def forward(
|
|||||||
batch_size = hidden_states.size(0)
|
batch_size = hidden_states.size(0)
|
||||||
|
|
||||||
# inject the condition and the residual then project it into the pretrained proj_in
|
# inject the condition and the residual then project it into the pretrained proj_in
|
||||||
hidden_states = self.adapter(residual_x=residual_x,conditioned_x=hidden_states)
|
hidden_states = self.adapter(residual_x=residual_x,
|
||||||
|
conditioned_x=hidden_states)
|
||||||
|
|
||||||
hidden_states = self.proj_in(hidden_states)
|
hidden_states = self.proj_in(hidden_states)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user