视觉-文本实体链接使用说明
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)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|