2c4f1a0b6db80fb74def83afdbae8fd1ab70e2d74a2dfbe792fd7b1e0a21e42c
Browse files- SegmentationModel/nnunet_synt_pancreas_tumors.pt +3 -0
- SegmentationModel/swinunetr_synt_kidney_tumors.pt +3 -0
- SegmentationModel/swinunetr_synt_liver_tumors.pt +3 -0
- SegmentationModel/swinunetr_synt_pancreas_tumors.pt +3 -0
- SegmentationModel/unet_synt_kidney_tumors.pt +3 -0
- SegmentationModel/unet_synt_liver_tumors.pt +3 -0
- SegmentationModel/unet_synt_pancreas_tumors.pt +3 -0
- uploading_files_to_hugging_face.py +40 -0
SegmentationModel/nnunet_synt_pancreas_tumors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f86ac8a5d334a17caad09845de19a5b593b2eae1cc20c31279b9afbb83cb7dc6
|
| 3 |
+
size 66176157
|
SegmentationModel/swinunetr_synt_kidney_tumors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f8482382bd362aed1d5e7c91738de1e4ff1ac1819c23a6c21b2db776680e41e
|
| 3 |
+
size 256346175
|
SegmentationModel/swinunetr_synt_liver_tumors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0059fdcae59f1c8ea74f5956c199e1fa0420f7716ca0216018980099025756df
|
| 3 |
+
size 256346175
|
SegmentationModel/swinunetr_synt_pancreas_tumors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:987170179a0853889c6931acc56091b6e7d12e4c5e899b059d6073b373ed9702
|
| 3 |
+
size 256346175
|
SegmentationModel/unet_synt_kidney_tumors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fdddfcee607a21703b413198495df77328b68351dd7522648216c6599dbbb4a6
|
| 3 |
+
size 19260008
|
SegmentationModel/unet_synt_liver_tumors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b9c5ce10508151e0cb36ec0082b635e03eb86f65022c4f454708da7bdb25445
|
| 3 |
+
size 19260008
|
SegmentationModel/unet_synt_pancreas_tumors.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3d7ca09aa57ce20e3537c5dfae611b4759bbd000f626fcb2d4bb180b1090d5d
|
| 3 |
+
size 19260008
|
uploading_files_to_hugging_face.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'''
|
| 2 |
+
python uploading_files_to_hugging_face.py --folder_directory /path/to/your/folder --repository MrGiovanni/AbdomenAtlasInternal --repository_type dataset
|
| 3 |
+
'''
|
| 4 |
+
|
| 5 |
+
import huggingface_hub
|
| 6 |
+
import argparse
|
| 7 |
+
|
| 8 |
+
def main(args):
|
| 9 |
+
huggingface_hub.upload_folder(
|
| 10 |
+
folder_path=args.folder_directory,
|
| 11 |
+
repo_id=args.repository,
|
| 12 |
+
repo_type=args.repository_type,
|
| 13 |
+
multi_commits=True,
|
| 14 |
+
multi_commits_verbose=True
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
if __name__ == "__main__":
|
| 18 |
+
|
| 19 |
+
parser = argparse.ArgumentParser()
|
| 20 |
+
parser.add_argument('--folder_directory',
|
| 21 |
+
dest='folder_directory',
|
| 22 |
+
type=str,
|
| 23 |
+
default='/Users/zongwei.zhou/Desktop/AbdomenAtlasInternal',
|
| 24 |
+
help='the directory of the AbdomenAtlas dataset',
|
| 25 |
+
)
|
| 26 |
+
parser.add_argument('--repository',
|
| 27 |
+
dest='repository',
|
| 28 |
+
type=str,
|
| 29 |
+
default='MrGiovanni/AbdomenAtlasInternal',
|
| 30 |
+
help='repository directory',
|
| 31 |
+
)
|
| 32 |
+
parser.add_argument('--repository_type',
|
| 33 |
+
dest='repository_type',
|
| 34 |
+
type=str,
|
| 35 |
+
default='dataset',
|
| 36 |
+
help='the type of repository',
|
| 37 |
+
)
|
| 38 |
+
args = parser.parse_args()
|
| 39 |
+
|
| 40 |
+
main(args)
|