"...git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "f03dade5ab8f17a165d63efc205eb34a2330b7d8"
Commit 13bf0d46 authored by thomwolf's avatar thomwolf
Browse files

fixing Adam weights skip in TF convert script

parent 91aab2a6
......@@ -50,7 +50,7 @@ def convert_tf_checkpoint_to_pytorch(tf_checkpoint_path, bert_config_file, pytor
name = name.split('/')
# adam_v and adam_m are variables used in AdamWeightDecayOptimizer to calculated m and v
# which are not required for using pretrained model
if name[-1] in ["adam_v", "adam_m"]:
if any(n in ["adam_v", "adam_m"] for n in name):
print("Skipping {}".format("/".join(name)))
continue
pointer = model
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment