Closed BBC-Esq closed 1 month ago
Can you review this?
done and thanks!
Nice work with the tensorflow free preprocessing! Had this on my to do as well but didn't found the time so far. Didn't even had time to review PRs ;)
You're welcome. BTW, any chance I can get the script or the command that was used to create the model and associated .json files that were modified? I'd like to experiment with different conversion parameters and what not.
Added two files:
1) A modified preprocessing script that removes the complex
tensorflow
dependencies and instead relies ontorch
andtorchvision
, which are already dependencies anyways...so why usetensorflow
at all?2) An inference script that works assuming you use the modified
image_preprocessing_molmo.py
script provided above. NOTE: this script differs from the original inference script also in that it takes a hardcoded path to the molmo repository files instead of relying on the repo id and automatically downloading them. Feel free to modify for your use-case, however.