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

Hacky attempt at integrating this with FaRL LAION checkpoints #9

Open
evancasey opened this issue Mar 27, 2023 · 1 comment
Open

Hacky attempt at integrating this with FaRL LAION checkpoints #9

evancasey opened this issue Mar 27, 2023 · 1 comment

Comments

@evancasey
Copy link

evancasey commented Mar 27, 2023

Hi there! First of all thank you for the work on this awesome project.

I'm looking for an easy way to run the FaRL LAION checkpoints on a directory of images. The code structure in the main FaRL repo is not user friendly for inference uses so I tried to get it to work in here. However, since the LAION trained checkpoints are not JIT compiled I had to manually copy-paste the torch modules over and integrate this with the old inference code you had written in this repo.

My implementation is likely wrong because it does not output correct looking predictions. Maybe you can tell me what I'm doing wrong :) Or we can brainstorm a better solution to getting this repo working with the FaRL LAION checkpoints (maybe JIT compile them?). It could be very valuable for the research community!

https://gist.github.com/evancasey/eea749d7186e92670fca728ddb384212

Sample output:
output_face

output

@jyangliu
Copy link

Hello, Do you find the bug in your code implementation?

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