-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
54 lines (50 loc) · 1.57 KB
/
setup.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from setuptools import setup, find_packages
import os
def read_long_description():
root = os.path.abspath(os.path.dirname(__file__))
path = os.path.join(root, "README.md")
with open(path, "r", encoding="utf-8") as f:
text = f.read()
return text
setup(
name = 'simple-clip',
packages = find_packages(exclude=['notebooks']),
version = '0.2.0',
license='MIT',
description = 'A minimal, but effective implementation of CLIP (Contrastive Language-Image Pretraining) in PyTorch',
author = 'Filip Basara',
author_email = '[email protected]',
url = 'https://github.com/filipbasara0/simple-clip',
long_description=read_long_description(),
long_description_content_type = 'text/markdown',
keywords = [
'machine learning',
'pytorch',
'self-supervised learning',
'representation learning',
'contrastive learning'
],
install_requires=[
'torch>=2.1',
'torchvision>=0.16',
'transformers>=4.35',
'datasets>=2.15',
'tqdm>=4.66',
'torchinfo>=1.8.0',
'webdataset>=0.2.77',
'scikit-learn>=1.3.2'
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.10',
],
scripts=['run_training.py', 'train.py'],
entry_points={
"console_scripts": [
"train_clip = run_training:main"
],
},
)