vkashko commited on
Commit
996df8c
1 Parent(s): 544a575

refactor: all data

Browse files
.gitattributes CHANGED
@@ -53,3 +53,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
 
 
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
+ data filter=lfs diff=lfs merge=lfs -text
after/10.png DELETED

Git LFS Details

  • SHA256: 630a8e6eb46a9154b6b6598b5f160cb04665d293404807e695229fff455d64dd
  • Pointer size: 131 Bytes
  • Size of remote file: 614 kB
after/11.png DELETED

Git LFS Details

  • SHA256: 447876156e8c3b23bd253d1eb01cd9c9cef8b4f478f89adb323ac520aacd5016
  • Pointer size: 132 Bytes
  • Size of remote file: 3.34 MB
after/12.png DELETED

Git LFS Details

  • SHA256: 97815661d7908f6b2898ac43716f6718792969fdbfc86ca5b6534483d456a5a9
  • Pointer size: 131 Bytes
  • Size of remote file: 329 kB
after/13.png DELETED

Git LFS Details

  • SHA256: ca0cffa0ed5055f174a497198b3bd7cd060db1ea989248a753aabe36ff51770e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.87 MB
after/14.png DELETED

Git LFS Details

  • SHA256: afa8f9499c17496302a049061e7eaebf6c0b660c599d3a2fa312d1d94cb6b217
  • Pointer size: 131 Bytes
  • Size of remote file: 486 kB
after/15.png DELETED

Git LFS Details

  • SHA256: cfab1131f1fbcbc8365fb95037b2cfc41e4f5fbab6f341cf0c9902ec860973d4
  • Pointer size: 132 Bytes
  • Size of remote file: 1.03 MB
after/16.png DELETED

Git LFS Details

  • SHA256: 4bcc6b3d7ba92f4e24017a760c63cd538ee78cfdd990a90f9135f59a2d10500f
  • Pointer size: 131 Bytes
  • Size of remote file: 234 kB
after/17.png DELETED

Git LFS Details

  • SHA256: e3e0be71312229ed8ad8ec676478beeb46ebb2f635fafaa61b6426c66dc39a0f
  • Pointer size: 131 Bytes
  • Size of remote file: 680 kB
after/18.png DELETED

Git LFS Details

  • SHA256: e3dfdac3fd3f00f22e65efb951eb36c3a1f4ad1b931f2226c9c8d6e8671e1662
  • Pointer size: 131 Bytes
  • Size of remote file: 232 kB
after/19.png DELETED

Git LFS Details

  • SHA256: 9501ec8352eb9a294363412521d47f37ffd1df52a54dfa42cfe97bfac8396941
  • Pointer size: 132 Bytes
  • Size of remote file: 2.61 MB
after/2.png DELETED

Git LFS Details

  • SHA256: 1081d7095c47933077755aee2985da3923643769cb79649cd20626587859582e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.65 MB
after/20.png DELETED

Git LFS Details

  • SHA256: 1e81053b2541be5590b5ae527740069a9e6bd2ca78419cbe59a86b06de705a2b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.1 MB
after/21.png DELETED

Git LFS Details

  • SHA256: ad3df615065ee4d9cfff37e7e1a38df81099f92a9aee4a102bc7f5a5a658327c
  • Pointer size: 131 Bytes
  • Size of remote file: 475 kB
after/22.png DELETED

Git LFS Details

  • SHA256: b710f350ca23e57aa9caf5214ff5055deb374b4df00242b0e70f35672ae73d3d
  • Pointer size: 131 Bytes
  • Size of remote file: 269 kB
after/3.png DELETED

Git LFS Details

  • SHA256: 82f5c71fd17b5db4e795352520001f95f17790bdb4eb92b1563692b084fa2ecb
  • Pointer size: 131 Bytes
  • Size of remote file: 389 kB
after/4.png DELETED

Git LFS Details

  • SHA256: 197c04490f9b3c2085af1bb6fa72c33e6218447d43fa7895b7a6893f025e865b
  • Pointer size: 131 Bytes
  • Size of remote file: 733 kB
after/5.png DELETED

Git LFS Details

  • SHA256: 88eadce2b25930127467fbf48305f62cd6b7023ccfe1260acca8bec2ad800479
  • Pointer size: 131 Bytes
  • Size of remote file: 319 kB
after/6.png DELETED

Git LFS Details

  • SHA256: 4c6ba8d3254a8e3814baf0180cd26f3656336101bf76a1d3d48f04ea9db66081
  • Pointer size: 131 Bytes
  • Size of remote file: 692 kB
after/7.png DELETED

Git LFS Details

  • SHA256: b67858225528972d6d7c857610af0a5c95d9046a569d29e878441e7a25e6092c
  • Pointer size: 131 Bytes
  • Size of remote file: 445 kB
after/8.png DELETED

Git LFS Details

  • SHA256: aa0eacd99b49ca3f8479eb9d0909c6bd8bc47e4f81d6ee3f20d376eed8982399
  • Pointer size: 131 Bytes
  • Size of remote file: 533 kB
after/9.png DELETED

Git LFS Details

  • SHA256: c4564653da98ecb71efc41bd446715d64fd20fc277f0d37c9570fb1650b5b93f
  • Pointer size: 131 Bytes
  • Size of remote file: 983 kB
before/0.png DELETED

Git LFS Details

  • SHA256: 6d1dc596b257dfec2c8f7222943a0e823f37f40c5115b844bb9b7ee587e08145
  • Pointer size: 131 Bytes
  • Size of remote file: 235 kB
before/1.png DELETED

Git LFS Details

  • SHA256: bbc2deccc9ad675e0f22e4221bdb5bbaab56b0a2b02e2a745c5fb7a32568b603
  • Pointer size: 131 Bytes
  • Size of remote file: 180 kB
before/10.png DELETED

Git LFS Details

  • SHA256: f8cb89929821b0a9cbb8d52ba151e7435aedd1fbae5f067b416f5f8198c00dfd
  • Pointer size: 131 Bytes
  • Size of remote file: 593 kB
before/11.png DELETED

Git LFS Details

  • SHA256: 580cf95743a422977d706f654263bdda575c9e6c8644556816cd9ca0f2cfb777
  • Pointer size: 132 Bytes
  • Size of remote file: 3.14 MB
before/12.png DELETED

Git LFS Details

  • SHA256: 59a01b3457fc809a7906b8a219872bfd9f327fbacaeee2d9facbd76bbc725e99
  • Pointer size: 131 Bytes
  • Size of remote file: 306 kB
before/13.png DELETED

Git LFS Details

  • SHA256: 44dd2637b0d038c90abaa4605b5e74ebb15e5f2a32af6c4c82dc13b52e6fa22f
  • Pointer size: 132 Bytes
  • Size of remote file: 2.24 MB
before/14.png DELETED

Git LFS Details

  • SHA256: 175b0f151abc6704c0638555e6f9c134df1741f6af1f10f3b73479aebe24f2a5
  • Pointer size: 131 Bytes
  • Size of remote file: 510 kB
before/15.png DELETED

Git LFS Details

  • SHA256: b2298367831a7d1d765276ab160ae99f52cbac8d77700ddcf3343af9c6813396
  • Pointer size: 131 Bytes
  • Size of remote file: 924 kB
before/16.png DELETED

Git LFS Details

  • SHA256: f81f660f305ff29de5c1713487ee0f78f5e4fe6718c4161e571b460b8ec46bef
  • Pointer size: 131 Bytes
  • Size of remote file: 235 kB
before/17.png DELETED

Git LFS Details

  • SHA256: 0e441b2a3434fcf90da053e3bea74921ec86d2706283c6ca721ca0864297b886
  • Pointer size: 131 Bytes
  • Size of remote file: 714 kB
before/18.png DELETED

Git LFS Details

  • SHA256: 8cb021914c5d72bedb058bf4288ff694aa90cf9e566003d37ba95ac29d0fe78f
  • Pointer size: 131 Bytes
  • Size of remote file: 229 kB
before/19.png DELETED

Git LFS Details

  • SHA256: 81af5b54addd18965764ba565b2e039fd0879a30e8cdbcb9f712082658a5190c
  • Pointer size: 132 Bytes
  • Size of remote file: 2.31 MB
before/2.png DELETED

Git LFS Details

  • SHA256: 5bd2010d6376c483440e5a6334a988f76a7ad790632f70322f6622b52ed70a01
  • Pointer size: 132 Bytes
  • Size of remote file: 1.66 MB
before/20.png DELETED

Git LFS Details

  • SHA256: a6587cac945cd9cbda8e95a5159f429d49f54abab8eba3482ed4a9f9129f7e3d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.1 MB
before/21.png DELETED

Git LFS Details

  • SHA256: 04a713cd87bd4f1b36261a68d188b1b0121e3df494b8ee7f4a9a300b9515572f
  • Pointer size: 131 Bytes
  • Size of remote file: 522 kB
before/22.png DELETED

Git LFS Details

  • SHA256: d9c865536fa1f881f9574959fdaadeec39289d1b38488a6b9c017b97fb6c33c9
  • Pointer size: 131 Bytes
  • Size of remote file: 294 kB
before/3.png DELETED

Git LFS Details

  • SHA256: 3ed8c6b06ac0f1bfd808d8acc18325f814bb77884e49c5923906f02377b1836c
  • Pointer size: 131 Bytes
  • Size of remote file: 466 kB
before/4.png DELETED

Git LFS Details

  • SHA256: 61c0999fe37d3051c88bbe1b75c8c8ff7a40e7dd8d34f61f284e7e55a3e603c1
  • Pointer size: 131 Bytes
  • Size of remote file: 535 kB
before/5.png DELETED

Git LFS Details

  • SHA256: 9d241f4d30fcf1aefb7fd25b345d666c2e8bf5f4aa2cdc9d80610fce431c2769
  • Pointer size: 131 Bytes
  • Size of remote file: 421 kB
before/6.png DELETED

Git LFS Details

  • SHA256: bb8d8e05261a46cec3b9a6129b71a857e343532271479e2d12ee650abb8c1252
  • Pointer size: 131 Bytes
  • Size of remote file: 669 kB
before/7.png DELETED

Git LFS Details

  • SHA256: 06ac76ab280f04718f77435c1202b76605832a8a7387f2f755a1cc178c2363db
  • Pointer size: 131 Bytes
  • Size of remote file: 426 kB
before/8.png DELETED

Git LFS Details

  • SHA256: e7fc7200a83eb46dd9999d57fd3411d383a41bbde3454771a9d4e68d0a7cdd00
  • Pointer size: 131 Bytes
  • Size of remote file: 524 kB
before/9.png DELETED

Git LFS Details

  • SHA256: bab72e2df8dd6c1d1f865ecaadc5a63454c330dbe6be701378cedef07e6f0c85
  • Pointer size: 132 Bytes
  • Size of remote file: 1.12 MB
botox-injections-before-and-after.py ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import datasets
2
+ import pandas as pd
3
+
4
+ _CITATION = """\
5
+ @InProceedings{huggingface:dataset,
6
+ title = {botox-injections-before-and-after},
7
+ author = {TrainingDataPro},
8
+ year = {2023}
9
+ }
10
+ """
11
+
12
+ _DESCRIPTION = """\
13
+ The dataset consists of photos featuring the same individuals captured before and after
14
+ botox injections procedure. The dataset contains a diverse range of individuals with
15
+ various ages, ethnicities and genders.
16
+ The dataset is useful for evaluation of the effectiveness of botox injections for
17
+ different skin and face types, face recognition and reidentification tasks. It can be
18
+ utilised for biometric tasks , in beauty sphere, for medical purposes and e-commerce.
19
+ """
20
+ _NAME = "botox-injections-before-and-after"
21
+
22
+ _HOMEPAGE = f"https://huggingface.co/datasets/TrainingDataPro/{_NAME}"
23
+
24
+ _LICENSE = ""
25
+
26
+ _DATA = f"https://huggingface.co/datasets/TrainingDataPro/{_NAME}/resolve/main/data/"
27
+
28
+
29
+ class BotoxInjectionsBeforeAndAfter(datasets.GeneratorBasedBuilder):
30
+ def _info(self):
31
+ return datasets.DatasetInfo(
32
+ description=_DESCRIPTION,
33
+ features=datasets.Features(
34
+ {
35
+ "id": datasets.Value("int32"),
36
+ "before": datasets.Image(),
37
+ "aftre": datasets.Image(),
38
+ }
39
+ ),
40
+ supervised_keys=None,
41
+ homepage=_HOMEPAGE,
42
+ citation=_CITATION,
43
+ )
44
+
45
+ def _split_generators(self, dl_manager):
46
+ before = dl_manager.download(f"{_DATA}before.tar.gz")
47
+ after = dl_manager.download(f"{_DATA}after.tar.gz")
48
+ annotations = dl_manager.download(f"{_DATA}{_NAME}.csv")
49
+ before = dl_manager.iter_archive(before)
50
+ after = dl_manager.iter_archive(after)
51
+ return [
52
+ datasets.SplitGenerator(
53
+ name=datasets.Split.TRAIN,
54
+ gen_kwargs={
55
+ "before": before,
56
+ "after": after,
57
+ "annotations": annotations,
58
+ },
59
+ ),
60
+ ]
61
+
62
+ def _generate_examples(self, before, after, annotations):
63
+ for idx, (
64
+ (before_image_path, before_image),
65
+ (after_image_path, after_image),
66
+ ) in enumerate(zip(before, after)):
67
+ yield idx, {
68
+ "id": before_image_path.split("/")[-1].split(".")[0],
69
+ "image": {"path": before_image_path, "bytes": before_image.read()},
70
+ "mask": {"path": after_image_path, "bytes": after_image.read()},
71
+ }
after/0.png → data/after.tar.gz RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ea80ff34263f96ed8ef8a6ec652b50f2c04ee068a8e2700940ccf4232edb411a
3
- size 237887
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:514f7fc41e53b9b3e168a840f0b71713667c020608cf94d189aa599f23f6f2b7
3
+ size 19463056
after/1.png → data/before.tar.gz RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:780aff3c9e33e5a69971fda2e6a87705a23f73756bab74e2279e73c63fa1be85
3
- size 209098
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b605d85f21d666a7e56b1aef29ebf27b7b2ac22d6b38e1c9310a6ccfc17398a
3
+ size 19360475
botox.csv → data/botox-injections-before-and-after.csv RENAMED
File without changes