From 81a8ee5d67f57b9513a071651e675febbde9e14b Mon Sep 17 00:00:00 2001 From: dagangtj <2285648311@qq.com> Date: Wed, 18 Mar 2026 23:20:05 +1100 Subject: [PATCH] Add setup.py to enable pip install -e . Fixes #2 Added setup.py file with proper package configuration to enable editable installation. This allows users to run 'pip install -e .' as documented in the README. Package includes: - All required dependencies (torch, torchvision, tensorrt, onnx, etc.) - Python 3.11+ requirement - Proper package metadata --- If you find this fix helpful, consider sending a tip to: USDT (TRC20): TJL2uq9nC6aqqGTDSUaUg8KWepSh8htrft --- setup.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..38e387c --- /dev/null +++ b/setup.py @@ -0,0 +1,28 @@ +from setuptools import setup, find_packages + +setup( + name="dart-sam3", + version="0.1.0", + description="Detect Anything in Real Time: Real-time object detection using frontier object detection models", + author="mkturkcan", + url="https://github.com/mkturkcan/DART", + packages=find_packages(), + python_requires=">=3.11", + install_requires=[ + "torch>=2.7.0", + "torchvision>=0.22.0", + "tensorrt>=10.9.0", + "onnx>=1.20.1", + "onnxsim", + "scipy", + "opencv-python", + "numpy", + ], + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.11", + ], +)