Include tip for loading local only
Browse files
README.md
CHANGED
|
@@ -43,10 +43,11 @@ The model predicts one of 12 predefined categories. Each category is assigned a
|
|
| 43 |
|
| 44 |
## Usage
|
| 45 |
### 1. Grab files
|
| 46 |
-
First, download the `food_classifier.py` and `requirements.txt`
|
|
|
|
| 47 |
<br>
|
| 48 |
|
| 49 |
-
### 2. Install prerequisites
|
| 50 |
Next, install the libraries required for running the model:
|
| 51 |
```
|
| 52 |
pip install -r requirements.txt
|
|
|
|
| 43 |
|
| 44 |
## Usage
|
| 45 |
### 1. Grab files
|
| 46 |
+
First, download the `food_classifier.py` and `requirements.txt`.
|
| 47 |
+
If you want to use only local files (and not rely on internet connection in ordedr to load weights), ensure to download all files and explicitly setting the `local_file_only` parameter when calling the `from_pretrained()`method!
|
| 48 |
<br>
|
| 49 |
|
| 50 |
+
### 2. Install prerequisites
|
| 51 |
Next, install the libraries required for running the model:
|
| 52 |
```
|
| 53 |
pip install -r requirements.txt
|