flake8 compliant
This commit is contained in:
@@ -10,8 +10,12 @@ if __name__ == "__main__":
|
||||
img_path_list = [path for path in img_dir.glob("*.jpeg") if path.is_file()]
|
||||
print(img_path_list)
|
||||
# instantiate data object
|
||||
vis_com_list = [VisualCommunication.from_file(path) for path in img_path_list]
|
||||
vis_com_list = [
|
||||
VisualCommunication.from_file(path)
|
||||
for path
|
||||
in img_path_list
|
||||
]
|
||||
# generate random predictions
|
||||
[vis_com.generate_random_prediction() for vis_com in vis_com_list]
|
||||
for vis_com in vis_com_list:
|
||||
print(vis_com)
|
||||
print(vis_com)
|
||||
|
||||
@@ -12,7 +12,11 @@ if __name__ == "__main__":
|
||||
img_path_list = [path for path in img_dir.glob("*.jpeg") if path.is_file()]
|
||||
print(img_path_list)
|
||||
# instantiate data object
|
||||
vis_com_list = [VisualCommunication.from_file(path) for path in img_path_list]
|
||||
vis_com_list = [
|
||||
VisualCommunication.from_file(path)
|
||||
for path
|
||||
in img_path_list
|
||||
]
|
||||
for vis_com in vis_com_list:
|
||||
print(repr(vis_com))
|
||||
# prepare env vars
|
||||
|
||||
@@ -3,11 +3,12 @@ from src.database import ModelOutputs
|
||||
|
||||
if __name__ == "__main__":
|
||||
# instantiate data object
|
||||
annotation = {
|
||||
|
||||
}
|
||||
vis_com_list = [ModelOutputs.from_annotation(path) for path in img_path_list]
|
||||
vis_com_list = [
|
||||
ModelOutputs.from_random()
|
||||
for i
|
||||
in range(3)
|
||||
]
|
||||
# generate random predictions
|
||||
[vis_com.generate_random_prediction() for vis_com in vis_com_list]
|
||||
for vis_com in vis_com_list:
|
||||
print(vis_com)
|
||||
print(vis_com)
|
||||
|
||||
@@ -25,7 +25,11 @@ if __name__ == "__main__":
|
||||
img_dir = test_dir / "imgs"
|
||||
img_path_list = [path for path in img_dir.glob("*.jpeg") if path.is_file()]
|
||||
# instantiate data object
|
||||
vis_com_list = [VisualCommunication.from_file(path) for path in img_path_list]
|
||||
vis_com_list = [
|
||||
VisualCommunication.from_file(path)
|
||||
for path
|
||||
in img_path_list
|
||||
]
|
||||
# generate random predictions
|
||||
[vis_com.generate_random_prediction() for vis_com in vis_com_list]
|
||||
# prepare env vars
|
||||
|
||||
@@ -17,4 +17,4 @@ if __name__ == "__main__":
|
||||
collection, db, client = connect()
|
||||
# get visual communication
|
||||
num_docs = total_annotated(collection)
|
||||
print(f"number of annotated documents in database: {num_docs}")
|
||||
print(f"number of annotated documents in database: {num_docs}")
|
||||
|
||||
@@ -17,4 +17,4 @@ if __name__ == "__main__":
|
||||
collection, db, client = connect()
|
||||
# get visual communication
|
||||
num_docs = total_documents(collection)
|
||||
print(f"total number of documents in database: {num_docs}")
|
||||
print(f"total number of documents in database: {num_docs}")
|
||||
|
||||
Reference in New Issue
Block a user