Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-gao-GY committed Nov 30, 2023
1 parent 54829b9 commit ff113ec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions baselines/fedvssl/fedvssl/dataset_convert_to_json.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Dataset pre-processing: convert .txt files to .json files
"""
"""Dataset pre-processing: convert .txt files to .json files."""
import json


# We use the .json files for the annotations.
# One can convert the train_split_1.txt to train_split_1.json
# by using the following code:
Expand All @@ -30,4 +27,3 @@
anns.append({"name": name, "label": int(label)})
with open(out_path[i], "w") as f:
json.dump(anns, f, indent=2)

0 comments on commit ff113ec

Please sign in to comment.