Spaces:
Sleeping
Sleeping
File size: 736 Bytes
6fc683c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
#!/usr/bin/env python3
import torch
from setuptools import find_packages, setup
torch_ver = [int(x) for x in torch.__version__.split(".")[:2]]
assert torch_ver >= [1, 4], "Requires PyTorch >= 1.4"
setup(
name="layoutlm",
version="0.0",
author="Yiheng Xu",
url="https://github.com/microsoft/unilm/tree/master/layoutlm",
description="LayoutLM",
packages=find_packages(exclude=("configs", "tests")),
python_requires=">=3.6",
install_requires=[
"transformers==2.9.0",
"tensorboardX==2.0",
"lxml==4.9.1",
"seqeval==0.0.12",
"Pillow==9.3.0",
],
extras_require={
"dev": ["flake8==3.8.2", "isort==4.3.21", "black==19.10b0", "pre-commit==2.4.0"]
},
)
|