mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
Avoid recreating resp_objects
.
As the following code review comment suggested: https://github.com/serengil/deepface/pull/1396#discussion_r1900015959
This commit is contained in:
parent
edcef02511
commit
472f146ecc
@ -163,7 +163,11 @@ def analyze(
|
||||
|
||||
# Convert the list of valid faces to a numpy array
|
||||
faces_array = np.array(valid_faces)
|
||||
resp_objects = [{} for _ in range(len(valid_faces))]
|
||||
|
||||
# Create placeholder response objects for each face
|
||||
for _ in range(len(valid_faces)):
|
||||
resp_objects.append({})
|
||||
|
||||
|
||||
# For each action, predict the corresponding attribute
|
||||
pbar = tqdm(
|
||||
|
Loading…
x
Reference in New Issue
Block a user