heesup commited on
Commit
a1b6268
·
verified ·
1 Parent(s): ca38759

Use bed field in loader schema and examples

Browse files
Files changed (1) hide show
  1. vlm_plant_sim.py +2 -2
vlm_plant_sim.py CHANGED
@@ -51,7 +51,7 @@ class VlmPlantSimDataset(datasets.GeneratorBasedBuilder):
51
  "source": Value("string"),
52
  "dap": Value("int32"),
53
  "plot": Value("int32"),
54
- "tier": Value("int32"),
55
  "image_path": Value("string"),
56
  "annotation_path": Value("string"),
57
  "scene_json_path": Value("string"),
@@ -106,7 +106,7 @@ class VlmPlantSimDataset(datasets.GeneratorBasedBuilder):
106
  "source": record.get("source", ""),
107
  "dap": int(record.get("dap", 0)),
108
  "plot": int(record.get("plot", 0)),
109
- "tier": int(record.get("tier", record.get("location", 0))),
110
  "image_path": record.get("image_path", ""),
111
  "annotation_path": record.get("annotation_path", ""),
112
  "scene_json_path": record.get("scene_json_path", ""),
 
51
  "source": Value("string"),
52
  "dap": Value("int32"),
53
  "plot": Value("int32"),
54
+ "bed": Value("int32"),
55
  "image_path": Value("string"),
56
  "annotation_path": Value("string"),
57
  "scene_json_path": Value("string"),
 
106
  "source": record.get("source", ""),
107
  "dap": int(record.get("dap", 0)),
108
  "plot": int(record.get("plot", 0)),
109
+ "bed": int(record.get("bed", record.get("tier", record.get("location", 0)))),
110
  "image_path": record.get("image_path", ""),
111
  "annotation_path": record.get("annotation_path", ""),
112
  "scene_json_path": record.get("scene_json_path", ""),