You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
242 B
Python
9 lines
242 B
Python
3 weeks ago
|
import os
|
||
|
labels = os.listdir("labels")
|
||
|
images = os.listdir("images")
|
||
|
lst_labels = [i.split(".")[0] for i in labels]
|
||
|
lst_images = [i.split(".")[0] for i in images]
|
||
|
print(lst_images)
|
||
|
print(lst_labels)
|
||
|
print(set(lst_labels) == set(lst_images))
|