Fix python_unnecessary_generator_set_comprehension issues in deeplearning/.../silver/extract_frames.py
Differential Revision: D105295334 fbshipit-source-id: 3166b2df09bd7af1cea4dbd8dd7ba525a25bf9dd
This commit is contained in:
committed by
meta-codesync[bot]
parent
f66a2514df
commit
32f5f81ab9
@@ -76,7 +76,7 @@ def main():
|
||||
with open(os.path.join(config["path_annotations"], file), "r") as f:
|
||||
annotation = json.load(f)
|
||||
images = annotation["images"]
|
||||
images = set(
|
||||
images = {
|
||||
(
|
||||
image["original_video"],
|
||||
image["global_frame_idx"],
|
||||
@@ -84,7 +84,7 @@ def main():
|
||||
tuple(image["image_size"]),
|
||||
)
|
||||
for image in images
|
||||
)
|
||||
}
|
||||
args_list = [(image, dataset_name, config) for image in images]
|
||||
with Pool(os.cpu_count()) as pool:
|
||||
outputs = list(
|
||||
|
||||
Reference in New Issue
Block a user