liuganghuggingface commited on
Commit
10c5b4b
·
verified ·
1 Parent(s): 5eeed25

Update loader.py

Browse files
Files changed (1) hide show
  1. loader.py +5 -5
loader.py CHANGED
@@ -31,9 +31,9 @@ def load_graph_decoder(path='model_labeled'):
31
  model.init_model(path)
32
  model.disable_grads()
33
 
34
- # trainable_params, all_param = count_parameters(model)
35
- # param_stats = "Loaded Graph DiT from {} trainable params: {:,} || all params: {:,} || trainable%: {:.4f}".format(
36
- # path, trainable_params, all_param, 100 * trainable_params / all_param
37
- # )
38
- # print(param_stats)
39
  return model
 
31
  model.init_model(path)
32
  model.disable_grads()
33
 
34
+ trainable_params, all_param = count_parameters(model)
35
+ param_stats = "Loaded Graph DiT from {} trainable params: {:,} || all params: {:,} || trainable%: {:.4f}".format(
36
+ path, trainable_params, all_param, 100 * trainable_params / all_param
37
+ )
38
+ print(param_stats)
39
  return model