Skip to main content

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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mmkg_visual_entity_recognition-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95cb86d1f357e4e01219534b85cabc02c54bedbf2d2402e761a81c5f08f7b9a5
MD5 82641bdcfdb917df9a915a2f7b4a96a3
BLAKE2b-256 ababb61a374cfb516a5ec4dc18f4ab143fa4da4ee6a5dde9548fe35b16f5799b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page