You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+39-18Lines changed: 39 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,24 @@ High performance, state of the art machine learning in php.
12
12
13
13
If you have a usecase that's not listed above, please create an [issue](https://github.com/funcai/funcai-php/issues/new) and explain what you would like to do.
14
14
15
-
###Features
15
+
## Features
16
16
17
17
-**Runs everywhere** - You only need PHP, **nothing else**
18
18
-**Super simple API** - No machine learning knowledge required
19
19
-**Maximum performance** - Preloads the machine learning core, so predictions are super fast
20
20
21
-
###Installation
22
-
Install the package via composer:
21
+
## Installation
22
+
#### 1. Install the package via composer:
23
23
24
24
composer require funcai/funcai-php
25
25
26
+
#### 2. Download the tensorflow library:
27
+
28
+
php vendor/funcai/funcai-php/install.php
29
+
30
+
This downloads tensorflow to `./tensorflow`.
31
+
32
+
#### 3. Download the required models
26
33
Until we've figured out a solution for how to host the final models, the following step is a bit more difficult than we'd like it to be.
27
34
28
35
You'll need to have python installed (locally), and some sort of way to host the model files yourself.
The model will be placed in vendor/funcai/funcai-php/models/efficientnet. You will need to have access to this folder from your webserver. For example, if you've uploaded the folder to /var/www/models/efficientnet, you should set the path like this:
42
+
The model will be placed in vendor/funcai/funcai-php/models.
43
+
44
+
#### 4. Configure the models folder
45
+
You will need to move the models folder to a permanent location.
46
+
For example, move it to `/var/www/models` on your server. In that case make sure to set the base path accordingly:
To be able to run the example file you need to run the following docker command which will download the efficientnet model and save it in the correct file format:
0 commit comments