Skip to content

Commit ce51acd

Browse files
authored
update parse_args
fix lukas-blecher#160
1 parent d0251fa commit ce51acd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pix2tex/utils/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def parse_args(args, **kwargs) -> Munch:
5555
args.update(kwargs)
5656
args.wandb = not kwargs.debug and not args.debug
5757
args.device = get_device(args, kwargs.no_cuda)
58+
args.encoder_structure = args.get('encoder_structure', 'hybrid')
5859
args.max_dimensions = [args.max_width, args.max_height]
5960
args.min_dimensions = [args.get('min_width', 32), args.get('min_height', 32)]
6061
if 'decoder_args' not in args or args.decoder_args is None:

0 commit comments

Comments
 (0)