mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-14 17:38:06 -05:00
* Add AvgPool2d as a layer * Clean up a bit * Remove stateless layers in yolo_nn * More cleanup * Save label for test * Add test for YOLO * Test without cv2 * Don't fail if cv2 not installed * Better import * Fix image read * Use opencv :) * Don't download the file * Fix errors * Use same version * Set higher confidence * Why is the confidence so low? * Start over * Remove stateless layers * Remove extra lines * Revert changes * Save a few more lines
46 lines
1.4 KiB
Python
46 lines
1.4 KiB
Python
#!/usr/bin/env python3
|
|
|
|
import os
|
|
from setuptools import setup
|
|
|
|
directory = os.path.abspath(os.path.dirname(__file__))
|
|
with open(os.path.join(directory, 'README.md'), encoding='utf-8') as f:
|
|
long_description = f.read()
|
|
|
|
setup(name='tinygrad',
|
|
version='0.4.0',
|
|
description='You like pytorch? You like micrograd? You love tinygrad! heart',
|
|
author='George Hotz',
|
|
license='MIT',
|
|
long_description=long_description,
|
|
long_description_content_type='text/markdown',
|
|
packages = ['tinygrad', 'tinygrad.llops', 'tinygrad.nn', 'tinygrad.runtime', 'tinygrad.shape'],
|
|
classifiers=[
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: MIT License"
|
|
],
|
|
install_requires=['numpy', 'requests', 'pillow', 'tqdm', 'networkx'],
|
|
python_requires='>=3.8',
|
|
extras_require={
|
|
'gpu': ["pyopencl"],
|
|
'llvm': ["llvmlite"],
|
|
'cuda': ["pycuda"],
|
|
'triton': ["triton>=2.0.0.dev20221202"],
|
|
'metal': ["pyobjc-framework-Metal", "pyobjc-framework-Cocoa", "pyobjc-framework-libdispatch"],
|
|
'linting': [
|
|
"flake8",
|
|
"pylint",
|
|
"mypy",
|
|
"pre-commit",
|
|
],
|
|
'testing': [
|
|
"torch~=1.13.0",
|
|
"pytest",
|
|
"pytest-xdist",
|
|
"onnx~=1.13.0",
|
|
"onnx2torch",
|
|
"opencv-python",
|
|
],
|
|
},
|
|
include_package_data=True)
|