diff --git a/pyproject.toml b/pyproject.toml index a29d5ef..0da02a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,13 +75,11 @@ test = [ "transformers>=4.35.2", "piq>=0.8.0", "torchvision>=0.16.1", - # An unofficial Python package for Meta AI's Segment Anything Model: - # https://github.com/opengeos/segment-anything + # An unofficial Python package for Meta AI's Segment Anything Model: https://github.com/opengeos/segment-anything "segment-anything-py>=1.0", - # Official Python package for HQ-SAM + # Official Python package for HQ-SAM: https://github.com/SysCV/sam-hq "segment-anything-hq>=0.3", - # HQ-SAM missing dependency: - # https://github.com/SysCV/sam-hq/pull/59 + # HQ-SAM missing dependency: https://github.com/SysCV/sam-hq/pull/59 "timm>=0.5.0", "sentencepiece>=0.2.0", ] @@ -91,7 +89,6 @@ conversion = [ "segment-anything-py>=1.0", "requests>=2.26.0", "tqdm>=4.62.3", - "gdown>=5.2.0", ] doc = [ # required by mkdocs to format the signatures @@ -129,8 +126,7 @@ allow-direct-references = true [tool.rye.scripts] serve-docs = "mkdocs serve" test-cov = "coverage run -m pytest" -# Work around for "Couldn't parse" errors due to e.g. opencv-python: -# https://github.com/nedbat/coveragepy/issues/1653 +# Work around for "Couldn't parse" errors due to e.g. opencv-python: https://github.com/nedbat/coveragepy/issues/1653 build-html-cov = { cmd = "coverage html", env = { PYTHONWARNINGS = "ignore:Couldn't parse::coverage.report_core" } } serve-cov-report = { chain = [ "build-html-cov", @@ -164,7 +160,7 @@ combine-as-imports = true black = true [tool.pyright] -include = ["src/refiners", "tests", "scripts"] +include = ["src/refiners", "tests"] strict = ["*"] exclude = ["**/__pycache__", "tests/weights", "tests/repos"] reportMissingTypeStubs = "warning" diff --git a/requirements.lock b/requirements.lock index e56d25a..c8cb516 100644 --- a/requirements.lock +++ b/requirements.lock @@ -29,8 +29,6 @@ attrs==24.2.0 # via referencing babel==2.16.0 # via mkdocs-material -beautifulsoup4==4.12.3 - # via gdown bitsandbytes==0.44.0 # via refiners black==24.8.0 @@ -72,7 +70,6 @@ exceptiongroup==1.2.2 filelock==3.16.1 # via datasets # via diffusers - # via gdown # via huggingface-hub # via torch # via transformers @@ -88,8 +85,6 @@ fsspec==2024.6.1 # via torch future==1.0.0 # via neptune -gdown==5.2.0 - # via refiners ghp-import==2.1.0 # via mkdocs gitdb==4.0.11 @@ -285,8 +280,6 @@ pyjwt==2.9.0 pymdown-extensions==10.10.2 # via mkdocs-material # via mkdocstrings -pysocks==1.7.1 - # via requests pytest==8.3.3 # via pytest-rerunfailures pytest-rerunfailures==14.0 @@ -328,7 +321,6 @@ requests==2.32.3 # via bravado-core # via datasets # via diffusers - # via gdown # via huggingface-hub # via mkdocs-material # via neptune @@ -376,8 +368,6 @@ six==1.16.0 # via rfc3339-validator smmap==5.0.1 # via gitdb -soupsieve==2.6 - # via beautifulsoup4 swagger-spec-validator==3.0.4 # via bravado-core # via neptune @@ -406,7 +396,6 @@ torchvision==0.19.1 # via timm tqdm==4.66.5 # via datasets - # via gdown # via huggingface-hub # via refiners # via transformers diff --git a/typings/gdown/__init__.pyi b/typings/gdown/__init__.pyi deleted file mode 100644 index 01d0b52..0000000 --- a/typings/gdown/__init__.pyi +++ /dev/null @@ -1 +0,0 @@ -def download(id: str, output: str, quiet: bool = False) -> str: ...