liuganghuggingface
commited on
Update loader.py
Browse files
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 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
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
|