Spaces:
Running
Running
Commit
·
43002be
1
Parent(s):
b8ee4fc
Option to install cityscrapes dataset download script, as well as requirements file
Browse files- data/download.py +18 -0
- env.yml +164 -0
data/download.py
CHANGED
|
@@ -5,6 +5,7 @@
|
|
| 5 |
# https://www.cityscapes-dataset.com/
|
| 6 |
import os
|
| 7 |
import sys
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
# Download and cache dataset
|
|
@@ -12,5 +13,22 @@ def main():
|
|
| 12 |
pass
|
| 13 |
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
if __name__ == "__main__":
|
| 16 |
main()
|
|
|
|
| 5 |
# https://www.cityscapes-dataset.com/
|
| 6 |
import os
|
| 7 |
import sys
|
| 8 |
+
import pip
|
| 9 |
|
| 10 |
|
| 11 |
# Download and cache dataset
|
|
|
|
| 13 |
pass
|
| 14 |
|
| 15 |
|
| 16 |
+
def download(name='cityscapes', path='data/downloads'):
|
| 17 |
+
"""Select one of the available and implemented datasets to download:
|
| 18 |
+
name=any(['cityscapes', 'camvid', 'labelme'])
|
| 19 |
+
"""
|
| 20 |
+
if name == 'cityscapes':
|
| 21 |
+
download_cityscapes(path)
|
| 22 |
+
else:
|
| 23 |
+
raise NotImplementedError
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def download_cityscapes(path='data/downloads'):
|
| 27 |
+
if hasattr(pip, 'main'):
|
| 28 |
+
pip.main(['install', 'cityscrapesscripts'])
|
| 29 |
+
else:
|
| 30 |
+
raise EnvironmentError("pip is not installed")
|
| 31 |
+
|
| 32 |
+
|
| 33 |
if __name__ == "__main__":
|
| 34 |
main()
|
env.yml
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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gnu
|
| 7 |
+
- anyio=3.5.0=py38h06a4308_0
|
| 8 |
+
- argon2-cffi=21.3.0=pyhd3eb1b0_0
|
| 9 |
+
- argon2-cffi-bindings=21.2.0=py38h7f8727e_0
|
| 10 |
+
- asttokens=2.0.5=pyhd3eb1b0_0
|
| 11 |
+
- attrs=21.4.0=pyhd3eb1b0_0
|
| 12 |
+
- babel=2.9.1=pyhd3eb1b0_0
|
| 13 |
+
- backcall=0.2.0=pyhd3eb1b0_0
|
| 14 |
+
- beautifulsoup4=4.11.1=py38h06a4308_0
|
| 15 |
+
- bleach=4.1.0=pyhd3eb1b0_0
|
| 16 |
+
- brotlipy=0.7.0=py38h27cfd23_1003
|
| 17 |
+
- ca-certificates=2022.07.19=h06a4308_0
|
| 18 |
+
- certifi=2022.9.24=py38h06a4308_0
|
| 19 |
+
- cffi=1.15.1=py38h74dc2b5_0
|
| 20 |
+
- charset-normalizer=2.0.4=pyhd3eb1b0_0
|
| 21 |
+
- cryptography=37.0.1=py38h9ce1e76_0
|
| 22 |
+
- dbus=1.13.18=hb2f20db_0
|
| 23 |
+
- debugpy=1.5.1=py38h295c915_0
|
| 24 |
+
- decorator=5.1.1=pyhd3eb1b0_0
|
| 25 |
+
- defusedxml=0.7.1=pyhd3eb1b0_0
|
| 26 |
+
- entrypoints=0.4=py38h06a4308_0
|
| 27 |
+
- executing=0.8.3=pyhd3eb1b0_0
|
| 28 |
+
- expat=2.4.9=h6a678d5_0
|
| 29 |
+
- fontconfig=2.13.1=h6c09931_0
|
| 30 |
+
- freetype=2.11.0=h70c0345_0
|
| 31 |
+
- giflib=5.2.1=h7b6447c_0
|
| 32 |
+
- glib=2.69.1=h4ff587b_1
|
| 33 |
+
- gst-plugins-base=1.14.0=h8213a91_2
|
| 34 |
+
- gstreamer=1.14.0=h28cd5cc_2
|
| 35 |
+
- icu=58.2=he6710b0_3
|
| 36 |
+
- idna=3.3=pyhd3eb1b0_0
|
| 37 |
+
- importlib-metadata=4.11.3=py38h06a4308_0
|
| 38 |
+
- importlib_resources=5.2.0=pyhd3eb1b0_1
|
| 39 |
+
- ipykernel=6.15.2=py38h06a4308_0
|
| 40 |
+
- ipython=8.4.0=py38h06a4308_0
|
| 41 |
+
- ipython_genutils=0.2.0=pyhd3eb1b0_1
|
| 42 |
+
- ipywidgets=7.6.5=pyhd3eb1b0_1
|
| 43 |
+
- jedi=0.18.1=py38h06a4308_1
|
| 44 |
+
- jinja2=3.0.3=pyhd3eb1b0_0
|
| 45 |
+
- jpeg=9e=h7f8727e_0
|
| 46 |
+
- json5=0.9.6=pyhd3eb1b0_0
|
| 47 |
+
- jsonschema=4.16.0=py38h06a4308_0
|
| 48 |
+
- jupyter=1.0.0=py38h06a4308_8
|
| 49 |
+
- jupyter_client=7.3.5=py38h06a4308_0
|
| 50 |
+
- jupyter_console=6.4.3=pyhd3eb1b0_0
|
| 51 |
+
- jupyter_core=4.11.1=py38h06a4308_0
|
| 52 |
+
- jupyter_server=1.18.1=py38h06a4308_0
|
| 53 |
+
- jupyterlab=3.4.4=py38h06a4308_0
|
| 54 |
+
- jupyterlab_pygments=0.1.2=py_0
|
| 55 |
+
- jupyterlab_server=2.15.2=py38h06a4308_0
|
| 56 |
+
- jupyterlab_widgets=1.0.0=pyhd3eb1b0_1
|
| 57 |
+
- krb5=1.19.2=hac12032_0
|
| 58 |
+
- ld_impl_linux-64=2.38=h1181459_1
|
| 59 |
+
- lerc=3.0=h295c915_0
|
| 60 |
+
- libclang=10.0.1=default_hb85057a_2
|
| 61 |
+
- libdeflate=1.8=h7f8727e_5
|
| 62 |
+
- libedit=3.1.20210910=h7f8727e_0
|
| 63 |
+
- libevent=2.1.12=h8f2d780_0
|
| 64 |
+
- libffi=3.3=he6710b0_2
|
| 65 |
+
- libgcc-ng=11.2.0=h1234567_1
|
| 66 |
+
- libgomp=11.2.0=h1234567_1
|
| 67 |
+
- libllvm10=10.0.1=hbcb73fb_5
|
| 68 |
+
- libpng=1.6.37=hbc83047_0
|
| 69 |
+
- libpq=12.9=h16c4e8d_3
|
| 70 |
+
- libsodium=1.0.18=h7b6447c_0
|
| 71 |
+
- libstdcxx-ng=11.2.0=h1234567_1
|
| 72 |
+
- libtiff=4.4.0=hecacb30_0
|
| 73 |
+
- libuuid=1.0.3=h7f8727e_2
|
| 74 |
+
- libwebp=1.2.4=h11a3e52_0
|
| 75 |
+
- libwebp-base=1.2.4=h5eee18b_0
|
| 76 |
+
- libxcb=1.15=h7f8727e_0
|
| 77 |
+
- libxkbcommon=1.0.1=hfa300c1_0
|
| 78 |
+
- libxml2=2.9.14=h74e7548_0
|
| 79 |
+
- libxslt=1.1.35=h4e12654_0
|
| 80 |
+
- lz4-c=1.9.3=h295c915_1
|
| 81 |
+
- markupsafe=2.1.1=py38h7f8727e_0
|
| 82 |
+
- matplotlib-inline=0.1.6=py38h06a4308_0
|
| 83 |
+
- mistune=0.8.4=py38h7b6447c_1000
|
| 84 |
+
- nbclassic=0.3.5=pyhd3eb1b0_0
|
| 85 |
+
- nbclient=0.5.13=py38h06a4308_0
|
| 86 |
+
- nbconvert=6.4.4=py38h06a4308_0
|
| 87 |
+
- nbformat=5.5.0=py38h06a4308_0
|
| 88 |
+
- ncurses=6.3=h5eee18b_3
|
| 89 |
+
- nest-asyncio=1.5.5=py38h06a4308_0
|
| 90 |
+
- notebook=6.4.12=py38h06a4308_0
|
| 91 |
+
- nspr=4.33=h295c915_0
|
| 92 |
+
- nss=3.74=h0370c37_0
|
| 93 |
+
- openssl=1.1.1q=h7f8727e_0
|
| 94 |
+
- packaging=21.3=pyhd3eb1b0_0
|
| 95 |
+
- pandocfilters=1.5.0=pyhd3eb1b0_0
|
| 96 |
+
- parso=0.8.3=pyhd3eb1b0_0
|
| 97 |
+
- pcre=8.45=h295c915_0
|
| 98 |
+
- pexpect=4.8.0=pyhd3eb1b0_3
|
| 99 |
+
- pickleshare=0.7.5=pyhd3eb1b0_1003
|
| 100 |
+
- pip=22.2.2=py38h06a4308_0
|
| 101 |
+
- pkgutil-resolve-name=1.3.10=py38h06a4308_0
|
| 102 |
+
- ply=3.11=py38_0
|
| 103 |
+
- prometheus_client=0.14.1=py38h06a4308_0
|
| 104 |
+
- prompt-toolkit=3.0.20=pyhd3eb1b0_0
|
| 105 |
+
- prompt_toolkit=3.0.20=hd3eb1b0_0
|
| 106 |
+
- psutil=5.9.0=py38h5eee18b_0
|
| 107 |
+
- ptyprocess=0.7.0=pyhd3eb1b0_2
|
| 108 |
+
- pure_eval=0.2.2=pyhd3eb1b0_0
|
| 109 |
+
- pycparser=2.21=pyhd3eb1b0_0
|
| 110 |
+
- pygments=2.11.2=pyhd3eb1b0_0
|
| 111 |
+
- pyopenssl=22.0.0=pyhd3eb1b0_0
|
| 112 |
+
- pyparsing=3.0.9=py38h06a4308_0
|
| 113 |
+
- pyqt=5.15.7=py38h6a678d5_1
|
| 114 |
+
- pyqt5-sip=12.11.0=py38h6a678d5_1
|
| 115 |
+
- pyrsistent=0.18.0=py38heee7806_0
|
| 116 |
+
- pysocks=1.7.1=py38h06a4308_0
|
| 117 |
+
- python=3.8.13=h12debd9_0
|
| 118 |
+
- python-dateutil=2.8.2=pyhd3eb1b0_0
|
| 119 |
+
- python-fastjsonschema=2.16.2=py38h06a4308_0
|
| 120 |
+
- pytz=2022.1=py38h06a4308_0
|
| 121 |
+
- pyzmq=23.2.0=py38h6a678d5_0
|
| 122 |
+
- qt-main=5.15.2=h327a75a_7
|
| 123 |
+
- qt-webengine=5.15.9=hd2b0992_4
|
| 124 |
+
- qtconsole=5.3.2=py38h06a4308_0
|
| 125 |
+
- qtpy=2.2.0=py38h06a4308_0
|
| 126 |
+
- qtwebkit=5.212=h4eab89a_4
|
| 127 |
+
- readline=8.1.2=h7f8727e_1
|
| 128 |
+
- requests=2.28.1=py38h06a4308_0
|
| 129 |
+
- send2trash=1.8.0=pyhd3eb1b0_1
|
| 130 |
+
- setuptools=63.4.1=py38h06a4308_0
|
| 131 |
+
- sip=6.6.2=py38h6a678d5_0
|
| 132 |
+
- six=1.16.0=pyhd3eb1b0_1
|
| 133 |
+
- sniffio=1.2.0=py38h06a4308_1
|
| 134 |
+
- soupsieve=2.3.1=pyhd3eb1b0_0
|
| 135 |
+
- sqlite=3.39.3=h5082296_0
|
| 136 |
+
- stack_data=0.2.0=pyhd3eb1b0_0
|
| 137 |
+
- terminado=0.13.1=py38h06a4308_0
|
| 138 |
+
- testpath=0.6.0=py38h06a4308_0
|
| 139 |
+
- tk=8.6.12=h1ccaba5_0
|
| 140 |
+
- toml=0.10.2=pyhd3eb1b0_0
|
| 141 |
+
- tornado=6.2=py38h5eee18b_0
|
| 142 |
+
- traitlets=5.1.1=pyhd3eb1b0_0
|
| 143 |
+
- typing_extensions=4.3.0=py38h06a4308_0
|
| 144 |
+
- urllib3=1.26.11=py38h06a4308_0
|
| 145 |
+
- wcwidth=0.2.5=pyhd3eb1b0_0
|
| 146 |
+
- webencodings=0.5.1=py38_1
|
| 147 |
+
- websocket-client=0.58.0=py38h06a4308_4
|
| 148 |
+
- wheel=0.37.1=pyhd3eb1b0_0
|
| 149 |
+
- widgetsnbextension=3.5.2=py38h06a4308_0
|
| 150 |
+
- xz=5.2.6=h5eee18b_0
|
| 151 |
+
- zeromq=4.3.4=h2531618_0
|
| 152 |
+
- zlib=1.2.12=h5eee18b_3
|
| 153 |
+
- zstd=1.5.2=ha4553b6_0
|
| 154 |
+
- pip:
|
| 155 |
+
- absl-py==1.2.0
|
| 156 |
+
- etils==0.8.0
|
| 157 |
+
- importlib-resources==5.10.0
|
| 158 |
+
- jax==0.3.21
|
| 159 |
+
- jaxlib==0.3.20+cuda11.cudnn82
|
| 160 |
+
- numpy==1.23.3
|
| 161 |
+
- opt-einsum==3.3.0
|
| 162 |
+
- scipy==1.9.2
|
| 163 |
+
- typing-extensions==4.4.0
|
| 164 |
+
- zipp==3.9.0
|