Create preprocessor_config.json

#6
by Xenova HF staff - opened

This PR adds the preprocessor_config.json, meaning you can use HF transformers and transformers.js for image pre-processing

Any hints on how to implement this with transformers.js?

const model = await AutoModel.from_pretrained('briaai/RMBG-2.0', { revision: 'refs/pr/6' });
const processor = await AutoProcessor.from_pretrained('briaai/RMBG-2.0', { revision: 'refs/pr/6' });

Gives me:

image.png

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment