@@ -147,17 +147,19 @@ def get(self, dataset_id):
147147 return {"message" : "Invalid dataset id" }, 400
148148
149149 images = ImageModel .objects (dataset_id = dataset .id , deleted = False )
150+ annotated_images = images .filter (annotated = True )
150151 annotations = AnnotationModel .objects (dataset_id = dataset_id , deleted = False )
151152 stats = {
152153 'total' : {
153154 'Users' : dataset .get_users ().count (),
154155 'Images' : images .count (),
155- 'Annotated Images' : images . filter ( annotated = True ) .count (),
156+ 'Annotated Images' : annotated_images .count (),
156157 'Annotations' : annotations .count (),
157- 'Categories' : len (dataset .categories )
158+ 'Categories' : len (dataset .categories ),
159+ 'Time Annotating (s)' : (images .sum ('milliseconds' ) or 0 ) / 1000
158160 },
159161 'average' : {
160- 'Image Width (px)' : images .average ('width' ),
162+ 'Image Size (px)' : images .average ('width' ),
161163 'Image Height (px)' : images .average ('height' ),
162164 'Annotation Area (px)' : annotations .average ('area' ),
163165 'Time (ms) per Image' : images .average ('milliseconds' ) or 0 ,
0 commit comments