Skip to main content

视觉-文本实体链接使用说明

1. 环境依赖

CUDA版本: 11.7 其他依赖库的安装命令如下:

conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia

2. 下载安装

可使用如下命令下载安装算法包:

pip install -U mmkg-mm-entity-linking

3. 使用示例及运行参数说明

from PIL import Image
from mmkg_mm_entity_linking import MMEntityLinking

image = Image.open("path/to/image")
probs = MMEntityLinking().inference(image, ["a dog", "a cat"])

Release files for mmkg-mm-entity-linking 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for mmkg-mm-entity-linking 0.1.2
File Interpreter ABI Platform
mmkg_mm_entity_linking-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / mmkg_mm_entity_linking-0.1.2-py3-none-any.whl

Download URL mmkg_mm_entity_linking-0.1.2-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3cd017a066f718c912490ed7db991a286bd85aac635c2974281921a521534796
BLAKE2b-256 checksum
How to use checksums
ba39339c7eb074935e3dba531126da5d2ed0e085c3b10a2be6e997f0c2ae5c13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page