mirror of
https://github.com/PaddlePaddle/PaddleClas.git
synced 2025-06-03 21:55:06 +08:00
docs: update
This commit is contained in:
parent
4fe5cd6500
commit
f3a7cd42a7
@ -212,14 +212,14 @@ You can save the prediction result(s) as pre-label, only need to use `pre_label_
|
|||||||
```python
|
```python
|
||||||
from paddleclas import PaddleClas
|
from paddleclas import PaddleClas
|
||||||
clas = PaddleClas(model_name='ResNet50', save_dir='./output_pre_label/')
|
clas = PaddleClas(model_name='ResNet50', save_dir='./output_pre_label/')
|
||||||
infer_imgs = 'docs/images/inference_deployment/whl_' # it can be infer_imgs folder path which contains all of images you want to predict.
|
infer_imgs = 'docs/images/' # it can be infer_imgs folder path which contains all of images you want to predict.
|
||||||
result=clas.predict(infer_imgs)
|
result=clas.predict(infer_imgs)
|
||||||
print(next(result))
|
print(next(result))
|
||||||
```
|
```
|
||||||
|
|
||||||
* CLI
|
* CLI
|
||||||
```bash
|
```bash
|
||||||
paddleclas --model_name='ResNet50' --infer_imgs='docs/images/inference_deployment/whl_' --save_dir='./output_pre_label/'
|
paddleclas --model_name='ResNet50' --infer_imgs='docs/images/' --save_dir='./output_pre_label/'
|
||||||
```
|
```
|
||||||
|
|
||||||
<a name="4.8"></a>
|
<a name="4.8"></a>
|
||||||
|
@ -212,14 +212,14 @@ print(next(result))
|
|||||||
```python
|
```python
|
||||||
from paddleclas import PaddleClas
|
from paddleclas import PaddleClas
|
||||||
clas = PaddleClas(model_name='ResNet50', save_dir='./output_pre_label/')
|
clas = PaddleClas(model_name='ResNet50', save_dir='./output_pre_label/')
|
||||||
infer_imgs = 'docs/images/whl/' # it can be infer_imgs folder path which contains all of images you want to predict.
|
infer_imgs = 'docs/images/' # it can be infer_imgs folder path which contains all of images you want to predict.
|
||||||
result=clas.predict(infer_imgs)
|
result=clas.predict(infer_imgs)
|
||||||
print(next(result))
|
print(next(result))
|
||||||
```
|
```
|
||||||
|
|
||||||
* CLI
|
* CLI
|
||||||
```bash
|
```bash
|
||||||
paddleclas --model_name='ResNet50' --infer_imgs='docs/images/whl/' --save_dir='./output_pre_label/'
|
paddleclas --model_name='ResNet50' --infer_imgs='docs/images/' --save_dir='./output_pre_label/'
|
||||||
```
|
```
|
||||||
|
|
||||||
<a name="4.8"></a>
|
<a name="4.8"></a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user