Skip to content

Commit

Permalink
chore: cleanup comments
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Auer <[email protected]>
  • Loading branch information
cau-git committed Jan 15, 2025
1 parent 8e838f8 commit 4845b35
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions demo/demo_code_formula_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,11 @@ def main(args):
# Ensure the viz dir
Path(viz_dir).mkdir(parents=True, exist_ok=True)

# ! TODO: change this
# Download models from HF
download_path = snapshot_download(repo_id="ds4sd/CodeFormula")
artifact_path = os.path.join(download_path, "")
# artifact_path = "/dccstor/doc_fig_class/DocFM-Vision-Pretrainer/Vary-master/checkpoints_new_code_equation_model/checkpoint-7000/"

# Test the LayoutPredictor
demo(logger, artifact_path, device, num_threads, image_dir, viz_dir)
# Test the Code+Equation model
demo(logger, download_path, device, num_threads, image_dir, viz_dir)


if __name__ == "__main__":
Expand Down

0 comments on commit 4845b35

Please sign in to comment.