Update README.md
Browse files
README.md
CHANGED
|
@@ -19,15 +19,15 @@ To access the XS-VID benchmark go to **https://gjhhust.github.io/XS-VID/**
|
|
| 19 |
|
| 20 |
### Using Command Line
|
| 21 |
|
| 22 |
-
This guide provides instructions for downloading and extracting the XS-VID dataset from
|
| 23 |
|
| 24 |
#### Prerequisites
|
| 25 |
|
| 26 |
* **Python and pip:** Ensure Python and pip are installed on your system.
|
| 27 |
-
* **
|
| 28 |
|
| 29 |
```bash
|
| 30 |
-
pip install
|
| 31 |
```
|
| 32 |
|
| 33 |
#### Download and Extract Dataset
|
|
@@ -35,8 +35,8 @@ This guide provides instructions for downloading and extracting the XS-VID datas
|
|
| 35 |
**Linux Command:**
|
| 36 |
|
| 37 |
```bash
|
| 38 |
-
pip install
|
| 39 |
-
|
| 40 |
mkdir -p ./XS-VID/{annotations,images} && \
|
| 41 |
unzip -o ./XS-VID/annotations.zip -d ./XS-VID/annotations && \
|
| 42 |
find ./XS-VID -name 'videos_subset_*.zip' -exec unzip -o {} -d ./XS-VID/images \; && \
|
|
@@ -46,8 +46,8 @@ rm -f ./XS-VID/*.zip
|
|
| 46 |
**Windows Command (CMD):**
|
| 47 |
|
| 48 |
```bash
|
| 49 |
-
pip install
|
| 50 |
-
|
| 51 |
mkdir "./XS-VID\annotations" && mkdir "./XS-VID\images" && ^
|
| 52 |
powershell -Command "Expand-Archive -Path './XS-VID/annotations.zip' -DestinationPath './XS-VID/annotations' -Force" && ^
|
| 53 |
for /r "./XS-VID" %f in (videos_subset_*.zip) do powershell -Command "Expand-Archive -Path '%f' -DestinationPath './XS-VID/images' -Force" && ^
|
|
|
|
| 19 |
|
| 20 |
### Using Command Line
|
| 21 |
|
| 22 |
+
This guide provides instructions for downloading and extracting the XS-VID dataset from huggingface using command-line tools in both Linux and Windows environments.
|
| 23 |
|
| 24 |
#### Prerequisites
|
| 25 |
|
| 26 |
* **Python and pip:** Ensure Python and pip are installed on your system.
|
| 27 |
+
* **huggingface Library:** Install the huggingface_hub library using pip:
|
| 28 |
|
| 29 |
```bash
|
| 30 |
+
pip install huggingface_hub
|
| 31 |
```
|
| 32 |
|
| 33 |
#### Download and Extract Dataset
|
|
|
|
| 35 |
**Linux Command:**
|
| 36 |
|
| 37 |
```bash
|
| 38 |
+
pip install huggingface_hub && \
|
| 39 |
+
huggingface-cli download lanlanlan23/XS-VID --repo-type dataset --local-dir ./XS-VID && \
|
| 40 |
mkdir -p ./XS-VID/{annotations,images} && \
|
| 41 |
unzip -o ./XS-VID/annotations.zip -d ./XS-VID/annotations && \
|
| 42 |
find ./XS-VID -name 'videos_subset_*.zip' -exec unzip -o {} -d ./XS-VID/images \; && \
|
|
|
|
| 46 |
**Windows Command (CMD):**
|
| 47 |
|
| 48 |
```bash
|
| 49 |
+
pip install huggingface_hub && ^
|
| 50 |
+
huggingface-cli download lanlanlan23/XS-VID --repo-type dataset --local-dir ./XS-VID && ^
|
| 51 |
mkdir "./XS-VID\annotations" && mkdir "./XS-VID\images" && ^
|
| 52 |
powershell -Command "Expand-Archive -Path './XS-VID/annotations.zip' -DestinationPath './XS-VID/annotations' -Force" && ^
|
| 53 |
for /r "./XS-VID" %f in (videos_subset_*.zip) do powershell -Command "Expand-Archive -Path '%f' -DestinationPath './XS-VID/images' -Force" && ^
|