Skip to content

Commit 0938894

Browse files
authored
consistent with hybrid depth
keep hyper-parameter meaning consistent for convenience to compare in the training record
1 parent d1f21f9 commit 0938894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pix2tex/models/vit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_encoder(args):
6868
emb_dropout=args.get('emb_dropout', 0),
6969
attn_layers=Encoder(
7070
dim=args.dim,
71-
depth=args.num_layers,
71+
depth=args.encoder_depth,
7272
heads=args.heads,
7373
)
7474
)

0 commit comments

Comments
 (0)