Datasets:
Kurt Stolle
commited on
Commit
·
889da18
1
Parent(s):
730f70b
Move initialization script
Browse files- README.md +1 -1
- scripts/download.py → csvps.py +3 -0
README.md
CHANGED
@@ -90,7 +90,7 @@ python -m pip install cityscapesscripts
|
|
90 |
Note that this may prompt your [Cityscapes account](https://cityscapes-dataset.com/login/) login credentials.
|
91 |
|
92 |
```bash
|
93 |
-
python
|
94 |
```
|
95 |
|
96 |
3. Remove the downloaded Cityscapes archive files to save disk space (optional).
|
|
|
90 |
Note that this may prompt your [Cityscapes account](https://cityscapes-dataset.com/login/) login credentials.
|
91 |
|
92 |
```bash
|
93 |
+
python csvps.py
|
94 |
```
|
95 |
|
96 |
3. Remove the downloaded Cityscapes archive files to save disk space (optional).
|
scripts/download.py → csvps.py
RENAMED
@@ -32,16 +32,19 @@ def parse_args() -> argparse.Namespace:
|
|
32 |
parser.add_argument(
|
33 |
"downloads_dir",
|
34 |
type=Path,
|
|
|
35 |
help="Path to the directory where ZIP files are/will be stored (e.g., 'downloads').",
|
36 |
)
|
37 |
parser.add_argument(
|
38 |
"data_dir",
|
39 |
type=Path,
|
|
|
40 |
help="Path to the directory where extracted files should be moved (e.g., 'data').",
|
41 |
)
|
42 |
parser.add_argument(
|
43 |
"manifest_file",
|
44 |
type=Path,
|
|
|
45 |
help="Path to the manifest file (e.g., 'manifest.csv').",
|
46 |
)
|
47 |
return parser.parse_args()
|
|
|
32 |
parser.add_argument(
|
33 |
"downloads_dir",
|
34 |
type=Path,
|
35 |
+
default=Path("downloads"),
|
36 |
help="Path to the directory where ZIP files are/will be stored (e.g., 'downloads').",
|
37 |
)
|
38 |
parser.add_argument(
|
39 |
"data_dir",
|
40 |
type=Path,
|
41 |
+
default=Path("data"),
|
42 |
help="Path to the directory where extracted files should be moved (e.g., 'data').",
|
43 |
)
|
44 |
parser.add_argument(
|
45 |
"manifest_file",
|
46 |
type=Path,
|
47 |
+
default=Path("manifest.csv"),
|
48 |
help="Path to the manifest file (e.g., 'manifest.csv').",
|
49 |
)
|
50 |
return parser.parse_args()
|