Skip to content

Commit

Permalink
Merge pull request #186 from OFA-Sys/features/ofa_cn
Browse files Browse the repository at this point in the history
orig_patch_image_size bug fixed
  • Loading branch information
logicwong authored Jul 29, 2022
2 parents b8c93fd + f4beec5 commit a26c835
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/ofa/ofa.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ def ofa_large_architecture(args):
args.scale_heads = getattr(args, "scale_heads", False)
args.scale_resids = getattr(args, "scale_resids", False)

args.orig_patch_image_size = getattr(args, "orig_patch_image_size", 256)


@register_model_architecture("ofa", "ofa_base")
def ofa_base_architecture(args):
Expand Down

0 comments on commit a26c835

Please sign in to comment.