-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor build / dist to use pyproject.toml (#909)
* Move training -> open_clip_train since it's being installed as import package in site-packages * Remove .gitignore from train package * Update root gitignore * Update training module name to open_clip_train * switch from setup.py -> pyproject.toml * open_clip.__version__ * make [test] depend on [training] * pip install .[test] for CI * Change references training.main -> open_clip_train.main
- Loading branch information
Showing
38 changed files
with
127 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
[build-system] | ||
requires = ["pdm-backend"] | ||
build-backend = "pdm.backend" | ||
|
||
[project] | ||
name = "open_clip_torch" | ||
# NOTE for full list of authors see https://github.com/mlfoundations/open_clip?tab=readme-ov-file#citing | ||
# below covers most active / recent maintainers | ||
authors = [ | ||
{name = "Ross Wightman", email = "[email protected]"}, | ||
{name = "Gabriel Ilharco"}, | ||
{name = "Mitchell Wortsman"}, | ||
{name = "Romain Beaumont"}, | ||
] | ||
description = "Open reproduction of consastive language-image pretraining (CLIP) and related." | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
keywords = ["pytorch", "clip", "image-text", "language-image", "multimodal"] | ||
license = {text = "MIT"} | ||
classifiers = [ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Education', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Topic :: Scientific/Engineering', | ||
'Topic :: Scientific/Engineering :: Artificial Intelligence', | ||
'Topic :: Software Development', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
] | ||
dependencies = [ | ||
'torch>=1.9.0', | ||
'torchvision', | ||
'regex', | ||
'ftfy', | ||
'tqdm', | ||
'huggingface-hub', | ||
'timm', | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
training = [ | ||
'torch>=2.0', | ||
'webdataset>=0.2.5', | ||
'pandas', | ||
'transformers[sentencepiece]', | ||
'timm>=1.0.7', | ||
'fsspec', | ||
] | ||
test = [ | ||
'pytest-split', | ||
'pytest', | ||
'open_clip_torch[training]' | ||
] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/mlfoundations/open_clip" | ||
repository = "https://github.com/mlfoundations/open_clip" | ||
|
||
[tool.pdm.version] | ||
source = "file" | ||
path = "src/open_clip/version.py" | ||
|
||
[tool.pdm.build] | ||
excludes = ["./**/.git", "./**/logs/*"] | ||
package-dir = "src" | ||
includes = ["src/open_clip", "src/open_clip_train"] | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ['tests'] | ||
markers = [ | ||
'regression_test' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.