We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8981da commit 469afdcCopy full SHA for 469afdc
train.py
@@ -407,7 +407,7 @@ def train(train_cfg, vlm_cfg):
407
# Push the best model to the hub (Please set your user name in the config!)
408
if vlm_cfg.hf_repo_name is not None:
409
print("Training complete. Pushing model to Hugging Face Hub...")
410
- hf_model = VisionLanguageModel.from_pretrained(vlm_cfg.vlm_checkpoint_path)
+ hf_model = VisionLanguageModel.from_pretrained(os.path.join(vlm_cfg.vlm_checkpoint_path, run_name))
411
hf_model.push_to_hub(vlm_cfg.hf_repo_name)
412
413
if train_cfg.log_wandb:
0 commit comments