Skip to content

Commit

Permalink
Print summary when --profile option is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ohshima-axell committed Aug 1, 2024
1 parent 53b2a7b commit 6c0ffa1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions road_detection/hybridnets/hybridnets.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def recognize_from_image():
t0 = time.time()

model = ailia.Net(None,args.model_name, env_id=args.env_id)
if args.profile:
model.set_profile_mode(True)

color_list = standard_to_bgr(STANDARD_COLORS)

Expand Down Expand Up @@ -168,6 +170,9 @@ def recognize_from_image():
cap.release()
out_stream.release()

if args.profile:
print(model.get_summary())

logger.info('Script finished successfully.')

def recognize_from_video():
Expand Down

0 comments on commit 6c0ffa1

Please sign in to comment.