transformers-php icon indicating copy to clipboard operation
transformers-php copied to clipboard

How to get to PHP code from HuggingFace "Usage" examples?

Open CViniciusSDias opened this issue 10 months ago • 0 comments

Your question

While reading your article about background removal with PHP I got to the following conclusion:

The code in python is not similar to the PHP code at all.

In Python there's a lot of manual pre-processing that is done by the AutoProcessor and the model's output is handled in a completely different way too.

So the question is: how to get to that result? How to see the Python example and make it work with TransformersPHP?

Context (optional)

No response

Reference (optional)

No response

CViniciusSDias avatar Mar 10 '25 20:03 CViniciusSDias