Objective: Run AI models only using php. Now this is possible with https://github.com/CodeWithKyrian/transformers-php this library. I have tried object detection and question answering using this library. Technology: 1. PHP 8.2 Initialization: Guide - https://transformers.codewithkyrian.com/getting-started 1. Initialize project by composer init cmd. 2. Install transformer library by composer require codewithkyrian/transformers cmd. 3. Enable ffi extention in php.ini extension = ffi ffi.enable = true 4. Enable opcache opcache.jit = tracing 5. Increase memory limit memory_limit = 512M I. Object detection: ( https://transformers.codewithkyrian.com/object-detection ) Object detection can improve web application perspective . Example: Retail applications can speed up checkout by automatically recognizing ...
I am a web developer sharing the real challenges I encounter in my daily projects. Here, you'll find honest insights and solutions from my ongoing coding journey.