Skip to content

Commit

Permalink
small relative path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-blecher committed Apr 13, 2022
1 parent a6cd0f2 commit 243908c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pix2tex/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ def minmax_size(img, max_dimensions=None, min_dimensions=None):
img = padded_im
return img


@in_model_path()
def initialize(arguments=None):
if arguments is None:
arguments = Munch({'config': 'settings/config.yaml', 'checkpoint': 'model/checkpoints/weights.pth', 'no_cuda': True, 'no_resize': False})
arguments = Munch({'config': 'settings/config.yaml', 'checkpoint': 'checkpoints/weights.pth', 'no_cuda': True, 'no_resize': False})
logging.getLogger().setLevel(logging.FATAL)
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
with open(arguments.config, 'r') as f:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setuptools.setup(
name='pix2tex',
version='0.0.5',
version='0.0.6',
description="pix2tex: Using a ViT to convert images of equations into LaTeX code.",
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 243908c

Please sign in to comment.