MMKG Models
Project description
视觉实体识别使用说明
1. 环境依赖
CUDA版本: 11.7 其他依赖库的安装命令如下:
conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
2. 下载安装
可使用如下命令下载安装算法包:
pip install -U mmkg-visual-entity-recognition
3. 使用示例及运行参数说明
from PIL import Image
from mmkg_visual_entity_recognition import ImageEntityRecognition
image = Image.open("path/to/image")
res = ImageEntityRecognition.inference(image)
print(res)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file mmkg_visual_entity_recognition-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: mmkg_visual_entity_recognition-0.2.3-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0fdd9e7716f3ff9b0e2ba4101d99a51036a500c38c3a1cea617e6a3d530be2a |
|
MD5 | fb1473b39f4896201dad9161c3d3c325 |
|
BLAKE2b-256 | 0ca6e30e314bc2ed4de4950038ec15ea69943cebbce5fd1b0e134619a0ff8410 |