refactor: move image processors to separate files (#4229)
This commit is contained in:
@@ -143,6 +143,7 @@ def process_single_sample(data):
|
||||
|
||||
# DATA SAVING
|
||||
def save_json(filename, ds):
|
||||
print(f"answers saved to: {filename}")
|
||||
os.makedirs(os.path.dirname(filename), exist_ok=True)
|
||||
with open(filename, "w") as f:
|
||||
json.dump(ds, f, indent=4)
|
||||
|
||||
Reference in New Issue
Block a user