Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MotrixLab/ViMoGen
/ to_train_mode
Function
to_train_mode
train_eval_vimogen.py:230–232 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
228
229
230
def
to_train_mode():
231
model.train(
232
)
# NOTE even when train_target == ['controlnet'] the transformer should be on train mode for training
233
234
def
to_eval_mode():
235
model.eval()
Callers
2
generate_pipe
Function · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected