зеркало из https://github.com/microsoft/torchgeo.git
Add config files
This commit is contained in:
Родитель
23543ca610
Коммит
eb81387814
|
@ -0,0 +1,18 @@
|
|||
[flake8]
|
||||
max-line-length = 88
|
||||
exclude =
|
||||
# Data
|
||||
data/,
|
||||
|
||||
# Spack
|
||||
.spack-env/,
|
||||
|
||||
# Python
|
||||
.cache/
|
||||
.pytest_cache/,
|
||||
__pycache__/,
|
||||
|
||||
# Git
|
||||
.git/,
|
||||
application-import-names = torchsat
|
||||
import-order-style = google
|
|
@ -1,3 +1,5 @@
|
|||
data/
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
@ -75,6 +77,7 @@ docs/_build/
|
|||
target/
|
||||
|
||||
# Jupyter Notebook
|
||||
*.ipynb
|
||||
.ipynb_checkpoints
|
||||
|
||||
# IPython
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
[mypy]
|
||||
python_version = 3.8
|
||||
ignore_missing_imports = True
|
||||
warn_unused_configs = True
|
||||
disallow_any_generics = True
|
||||
disallow_untyped_calls = True
|
||||
disallow_untyped_defs = True
|
||||
disallow_incomplete_defs = True
|
||||
check_untyped_defs = True
|
||||
disallow_untyped_decorators = True
|
||||
no_implicit_optional = True
|
||||
warn_redundant_casts = True
|
||||
warn_unused_ignores = True
|
||||
warn_return_any = True
|
||||
#no_implicit_reexport = True
|
|
@ -0,0 +1,19 @@
|
|||
[tool.black]
|
||||
target-version = ['py36', 'py37', 'py38']
|
||||
exclude = '''
|
||||
/(
|
||||
# Data
|
||||
data
|
||||
|
||||
# Spack
|
||||
| \.spack-env
|
||||
|
||||
# Python
|
||||
| __pycache__
|
||||
| \.pytest_cache
|
||||
| \.mypy_cache
|
||||
|
||||
# Git
|
||||
| \.git
|
||||
)/
|
||||
'''
|
|
@ -0,0 +1,4 @@
|
|||
from .nwpu import VHR10
|
||||
|
||||
|
||||
__all__ = ("VHR10",)
|
|
@ -1,8 +1,8 @@
|
|||
import os
|
||||
|
||||
import torch
|
||||
from torchvision.utils import download_file_from_google_drive, check_integrity
|
||||
from torchvision.vision import VisionDataset
|
||||
from torchvision.datasets.utils import download_file_from_google_drive, check_integrity
|
||||
from torchvision.datasets.vision import VisionDataset
|
||||
|
||||
|
||||
class VHR10(VisionDataset):
|
||||
|
|
Загрузка…
Ссылка в новой задаче