Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tips? #8

Open
langestefan opened this issue Jan 30, 2025 · 1 comment
Open

Tips? #8

langestefan opened this issue Jan 30, 2025 · 1 comment

Comments

@langestefan
Copy link

Any tips to get this to run? I haven't been able to generate anything succesfully.

For example, I tried the https://jump.dev/ logo, which should be really simple. With default settings this is the result:

Image

@potamides
Copy link
Owner

First, which exact model are you running? DeTikZify is primarily trained on scientific figures, so logos like your input are likely very challenging for the model. But there are some tricks you could try to still get outputs closer to what you want.

This is the output with DeTikZifyv2 I get after 5 minutes of MCTS. Far from perfect, but at least it correctly aligns the text and the logo position:

Image

What often helps is reducing the complexity of the input. So here I removed the text and tried to only generate the logo part. The model does much better now after only a few tries:

Image

Next I would manually assemble the first and second solutions and continue with clean up. We try to document some of these workflows and usage tips here.

Lastly, if you are using DeTikZifyv2, you might also want to consider trying one of the v1 models. In the v1 models, we keep the vision encoder frozen, which might help with generalization to out-of-distribution inputs like your logo; however, this is an untested hypothesis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants