Yossh commited on
Commit
db56db7
1 Parent(s): 3140604

Upload 4 files

Browse files
Files changed (4) hide show
  1. check.py +13 -2
  2. conditioning_images.zip +3 -0
  3. images.zip +3 -0
  4. train.jsonl +2 -2
check.py CHANGED
@@ -1,13 +1,24 @@
1
  import os
2
 
3
- label_path = "label"
4
  label_files = set([os.path.splitext(file)[0] for file in os.listdir(label_path) if file.endswith(".png")])
5
 
6
- data_path = "data"
7
  data_files = set([os.path.splitext(file)[0] for file in os.listdir(data_path) if file.endswith(".png")])
8
  txt_files = set([os.path.splitext(file)[0] for file in os.listdir(data_path) if file.endswith(".txt")])
9
 
10
 
 
 
 
 
 
 
 
 
 
 
 
11
  if label_files==data_files:
12
  print("data_files")
13
  if label_files==txt_files:
 
1
  import os
2
 
3
+ label_path = "images"
4
  label_files = set([os.path.splitext(file)[0] for file in os.listdir(label_path) if file.endswith(".png")])
5
 
6
+ data_path = "conditioning_images"
7
  data_files = set([os.path.splitext(file)[0] for file in os.listdir(data_path) if file.endswith(".png")])
8
  txt_files = set([os.path.splitext(file)[0] for file in os.listdir(data_path) if file.endswith(".txt")])
9
 
10
 
11
+ for x in label_files ^ data_files:
12
+ if os.path.exists(f"conditioning_images/{x}.png"):
13
+ os.remove(f"conditioning_images/{x}.png")
14
+ if os.path.exists(f"conditioning_images/{x}.txt"):
15
+ os.remove(f"conditioning_images/{x}.txt")
16
+
17
+ if os.path.exists(f"images/{x}.png"):
18
+ os.remove(f"images/{x}.png")
19
+ if os.path.exists(f"images/{x}.txt"):
20
+ os.remove(f"images/{x}.txt")
21
+
22
  if label_files==data_files:
23
  print("data_files")
24
  if label_files==txt_files:
conditioning_images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2676f14dd8e93d6c07b65c03a1e4450b0bb8ef47380cd9a7b9fa04e9122bdc39
3
+ size 7625241569
images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf40915ae282673dbdae68b9251bd776bdecaa928c08612ee5e3a0a64c64ecca
3
+ size 489238929
train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6eea0bfc620b1d90cb70b0a0285d679d8d37266cc35617705a30732646266e51
3
- size 19416353
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c017a6b8e16d3b1a72f01a3ceb3216d98b8173fce70b837f6e7c0823796c9744
3
+ size 19400087