vkashko commited on
Commit
a121c1f
1 Parent(s): ed60a23

fix: load script

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
people-with-guns-segmentation-and-detection.py CHANGED
@@ -34,7 +34,7 @@ _LABELS = ["person", "gun"]
34
 
35
  class PeopleWithGunsSegmentationAndDetection(datasets.GeneratorBasedBuilder):
36
  BUILDER_CONFIGS = [
37
- datasets.BuilderConfig(name=f"{_NAME}", data_dir=f"{_DATA}{_NAME}"),
38
  ]
39
 
40
  DEFAULT_CONFIG_NAME = f"{_NAME}"
@@ -153,7 +153,7 @@ class PeopleWithGunsSegmentationAndDetection(datasets.GeneratorBasedBuilder):
153
  "id": image_id,
154
  "name": name,
155
  "image": os.path.join(data, "images", file),
156
- "mask": os.path.join(data, "masks", file),
157
  "width": width,
158
  "height": height,
159
  "shapes": shapes,
 
34
 
35
  class PeopleWithGunsSegmentationAndDetection(datasets.GeneratorBasedBuilder):
36
  BUILDER_CONFIGS = [
37
+ datasets.BuilderConfig(name=f"{_NAME}", data_dir=f"{_DATA}{_NAME}.zip"),
38
  ]
39
 
40
  DEFAULT_CONFIG_NAME = f"{_NAME}"
 
153
  "id": image_id,
154
  "name": name,
155
  "image": os.path.join(data, "images", file),
156
+ "mask": os.path.join(data, "labels", file),
157
  "width": width,
158
  "height": height,
159
  "shapes": shapes,