We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 564da98 commit 7b331feCopy full SHA for 7b331fe
1 file changed
partinet/process_utils/split_train.py
@@ -36,8 +36,8 @@ def main(labels_path: str, images_path: str, output_dir: str):
36
if idx in train_idx:
37
# Copy training images and labels
38
shutil.copy(
39
- os.path.join(images_path, file_name + ".jpg"),
40
- os.path.join(output_dir, "images", "train", file_name + ".jpg")
+ os.path.join(images_path, file_name + ".png"),
+ os.path.join(output_dir, "images", "train", file_name + ".png")
41
)
42
43
os.path.join(labels_path, file_name + ".txt"),
@@ -46,8 +46,8 @@ def main(labels_path: str, images_path: str, output_dir: str):
46
elif idx in val_idx:
47
# Copy validation images and labels
48
49
50
- os.path.join(output_dir, "images", "val", file_name + ".jpg")
+ os.path.join(output_dir, "images", "val", file_name + ".png")
51
52
53
0 commit comments