Skip to content

Commit

Permalink
Fix vit model config.
Browse files Browse the repository at this point in the history
Signed-off-by: ldwang <ftgreat@gmail.com>
  • Loading branch information
ldwang committed Nov 30, 2023
1 parent 1c03300 commit 0fc0cc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flagai/model/vision/vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def __init__(
super().__init__(config)
embed_layer=PatchEmbed
block_fn=Block
config = config.json_config
vit_config = VitConfig(**config)
vit_config.num_classes = num_classes
# config = vit_config
Expand Down

0 comments on commit 0fc0cc2

Please sign in to comment.