patch: Lint

This commit is contained in:
h-alice 2025-01-14 09:12:35 +08:00
parent a23893a5fa
commit da4a0c5452
No known key found for this signature in database
GPG Key ID: 5708F34144A70909

View File

@ -42,7 +42,7 @@ class Demography(ABC):
if img_batch.shape[0] == 1: # Single image
# Predict with legacy method.
return self.model(img_batch, training=False).numpy()[0, :]
else:
# Batch of images
# Predict with batch prediction
return self.model.predict_on_batch(img_batch)