facer icon indicating copy to clipboard operation
facer copied to clipboard

Hacky attempt at integrating this with FaRL LAION checkpoints

Open evancasey opened this issue 1 year ago • 1 comments

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

evancasey avatar Mar 27 '23 13:03 evancasey

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

jyangliu avatar Aug 31 '23 08:08 jyangliu