---
title: flower_classification14
canonical_url: "https://www.modelscope.cn/models/lskhh/flower_classification14"
md_url: "https://www.modelscope.cn/models/lskhh/flower_classification14.md"
repository: lskhh/flower_classification14
chinese_name: "花朵分类-14"
last_updated: 2023-05-04
license: "Apache License 2.0"
pipeline_tag: image-classification
tasks:
  - image-classification
model_type:
  - Transformer
library_name:
  - pytorch
frameworks:
  - pytorch
domain:
  - cv
downloads: 3188
stars: 4
tags:
  - Alibaba
  - "Image classification"
  - Transformer
  - "Dailylife tags"
---

# flower_classification14

> flower_classification14 - lskhh 在 ModelScope 开源的模型。模型推理已经跑通了，正在搞在线体验demo，可分类14种花朵，支持识别以下花朵类型：康乃馨、鸢尾花、风铃草、金英花、玫瑰、落新妇、郁金香、金盏花、蒲公英、金鸡菊、黑眼菊、睡莲、向日葵、雏菊。

lskhh/flower_classification14 是 ModelScope 魔搭社区上的image-classification模型，采用 Apache License 2.0 许可。

- **Repository**: lskhh/flower_classification14
- **License**: Apache License 2.0
- **Tasks**: image-classification
- **Tags**: Alibaba, Image classification, Transformer, Dailylife tags
- **Downloads**: 3188
- **Stars**: 4
- **Last updated**: 2023-05-04

Source: https://www.modelscope.cn/models/lskhh/flower_classification14

---

```bash
 git clone https://www.modelscope.cn/lskhh/flower_classification14.git
```

#### 模型加载和推理
更多关于模型加载和推理的问题参考[模型的推理Pipeline](https://modelscope.cn/docs/%E6%A8%A1%E5%9E%8B%E7%9A%84%E6%8E%A8%E7%90%86Pipeline)。
```bash
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
from modelscope.hub.api import HubApi
YOUR_ACCESS_TOKEN ="请从ModelScope个人中心->访问令牌获取"
api = HubApi() 
api.login(YOUR_ACCESS_TOKEN)

img_path = 'https://images.pexels.com/photos/54267/sunflower-blossom-bloom-flowers-54267.jpeg' #向日葵图片
# p = pipeline('image-classification', 'lskhh/flower_classification14')

image_classification = pipeline(Tasks.image_classification, 
                                model='lskhh/flower_classification14',
                               model_revision = "v1.0.3")
result = image_classification(img_path)
print(result)
```
更多使用说明请参阅[ModelScope文档中心](http://www.modelscope.cn/#/docs)。


```bash
 git clone https://www.modelscope.cn/lskhh/flower_classification14.git
```
