Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,143 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
+
# Dataset Summary
|
5 |
+
|
6 |
+
Healthy CT data for abdominal organs (liver, pancreas and kidney) are filtered out from public dataset.
|
7 |
+
|
8 |
+
# Downloading Instructions
|
9 |
+
|
10 |
+
#### 1- Install the Hugging Face library:
|
11 |
+
```bash
|
12 |
+
pip install -U "huggingface_hub[cli]"
|
13 |
+
```
|
14 |
+
#### 2- Download the dataset:
|
15 |
+
```bash
|
16 |
+
mkdir HealthyCT
|
17 |
+
cd HealthyCT
|
18 |
+
huggingface-cli download qicq1c/HealthyCT --repo-type dataset --local-dir . --cache-dir ./cache
|
19 |
+
```
|
20 |
+
|
21 |
+
<details>
|
22 |
+
<summary style="margin-left: 25px;">[Optional] Resume downloading</summary>
|
23 |
+
<div style="margin-left: 25px;">
|
24 |
+
|
25 |
+
In case you had a previous interrupted download, resume it by adding “--resume-download” to the download command:
|
26 |
+
```bash
|
27 |
+
huggingface-cli download qicq1c/HealthyCT --repo-type dataset --local-dir . --cache-dir ./cache --resume-download
|
28 |
+
```
|
29 |
+
|
30 |
+
</div>
|
31 |
+
</details>
|
32 |
+
|
33 |
+
#### 3- Extract files: the dataset is formatted as a multi-part zip file. Use the first part (AbdomenAtlasMini.zip.001) to extract the dataset. With the GUI,
|
34 |
+
just right-click on the file and select "Extract Here". With the command-line, we suggest using 7zip (faster, see below).
|
35 |
+
If it is not available, you can concatenate the files and unzip (slower):
|
36 |
+
```bash
|
37 |
+
cat HealthyCT.zip* > HealthyCT.zip
|
38 |
+
unzip -o -q HealthyCT.zip
|
39 |
+
```
|
40 |
+
|
41 |
+
<details>
|
42 |
+
<summary style="margin-left: 25px;">[Optional] 7zip</summary>
|
43 |
+
<div style="margin-left: 25px;">
|
44 |
+
With 7zip, just run:
|
45 |
+
|
46 |
+
```bash
|
47 |
+
7z x HealthyCT.zip.001
|
48 |
+
```
|
49 |
+
|
50 |
+
Installing 7zip (optional):
|
51 |
+
|
52 |
+
For Debian/Ubuntu:
|
53 |
+
```bash
|
54 |
+
sudo apt update
|
55 |
+
sudo apt install p7zip-full
|
56 |
+
```
|
57 |
+
For Fedora:
|
58 |
+
```bash
|
59 |
+
sudo dnf install p7zip
|
60 |
+
```
|
61 |
+
For CentOS/RHEL:
|
62 |
+
```bash
|
63 |
+
sudo yum install p7zip
|
64 |
+
```
|
65 |
+
|
66 |
+
</div>
|
67 |
+
</details>
|
68 |
+
|
69 |
+
---
|
70 |
+
|
71 |
+
# Uploading Instructions
|
72 |
+
|
73 |
+
#### 0- Install 7zip
|
74 |
+
|
75 |
+
For Debian/Ubuntu:
|
76 |
+
```bash
|
77 |
+
sudo apt update
|
78 |
+
sudo apt install p7zip-full
|
79 |
+
```
|
80 |
+
<details>
|
81 |
+
<summary style="margin-left: 25px;">[Optional] Other operating systems</summary>
|
82 |
+
<div style="margin-left: 25px;">
|
83 |
+
|
84 |
+
For Fedora:
|
85 |
+
```bash
|
86 |
+
sudo dnf install p7zip
|
87 |
+
```
|
88 |
+
|
89 |
+
For CentOS/RHEL:
|
90 |
+
```bash
|
91 |
+
sudo yum install p7zip
|
92 |
+
```
|
93 |
+
|
94 |
+
For MacOS:
|
95 |
+
```bash
|
96 |
+
brew update
|
97 |
+
brew install p7zip
|
98 |
+
```
|
99 |
+
|
100 |
+
If you do not have brew installed, another possible solution is:
|
101 |
+
```bash
|
102 |
+
sudo port install p7zip
|
103 |
+
```
|
104 |
+
|
105 |
+
</div>
|
106 |
+
</details>
|
107 |
+
|
108 |
+
#### 1- Compress the folder for uploading
|
109 |
+
|
110 |
+
To compress the folder you want to upload into multi-part zip file with parts of 5GB (-v5g), take "AbdomenAtlas1.0" as an example:
|
111 |
+
|
112 |
+
Note: if AbdomenAtlas1.0ZipFolder and AbdomenAtlas1.0 share the same parent directory, please use the relative path for AbdomenAtlas1.0ZipFolder. Otherwise, please use the absolute path for AbdomenAtlas1.0ZipFolder.
|
113 |
+
|
114 |
+
```bash
|
115 |
+
mkdir /path/to/the/HealthyCT_ZipFolder
|
116 |
+
cd /path/to/the/HealthyCT
|
117 |
+
cd ..
|
118 |
+
7z -v5g a /path/to/the/HealthyCT_ZipFolder/HealthyCT.zip HealthyCT/
|
119 |
+
```
|
120 |
+
|
121 |
+
After zipping, the structure of the compressed folder (e.g., AbdomenAtlas1.0ZipFolder) will be:
|
122 |
+
```
|
123 |
+
HealthyCT_ZipFolder
|
124 |
+
├── HealthyCT.zip.001
|
125 |
+
├── HealthyCT.zip.002
|
126 |
+
├── HealthyCT.zip.003
|
127 |
+
├── ...
|
128 |
+
```
|
129 |
+
|
130 |
+
#### 2- Upload to Hugging Face
|
131 |
+
|
132 |
+
Create a repository at Hugging Face (e.g., a repository named AbdomenAtlas1.0)
|
133 |
+
|
134 |
+
Install huggingface_hub from the PyPi registry
|
135 |
+
```bash
|
136 |
+
pip install --upgrade huggingface_hub
|
137 |
+
```
|
138 |
+
Upload the compressed folder (e.g., AbdomenAtlas1.0ZipFolder) to this repository
|
139 |
+
```bash
|
140 |
+
python uploading_files_to_hugging_face.py --folder_directory /path/to/the/HealthyCT_ZipFolder --repository qicq1c/HealthyCT --repository_type dataset
|
141 |
+
```
|
142 |
+
|
143 |
+
|