Skip to content

Remove extra weights cloning from TensorFlow importer - #14460

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
dkurt:dnn_tf_no_extra_clone
May 7, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
dkurt:dnn_tf_no_extra_clone

Conversation

@dkurt

@dkurt dkurt commented Apr 30, 2019 •

Copy link
Copy Markdown
Member

Reduce a bit memory consumption of TensorFlow models (cv::readNet)

model Before PR (readNet mem consumption) With PR model file size
ssd_inception_v2_coco_2017_11_17 183MB 162MB 98MB
ssd_mobilenet_v1_coco_2017_11_17 79MB 73MB 28MB
faster_rcnn_inception_v2_coco_2018_01_28 127MB 116MB 55MB
EAST text detection 147MB 139MB 93MB
Inception 110.9MB 110.8MB 52MB

Still a bit unclear why the numbers are two times larger than the sizes of binary models.

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done! Thank you 👍

@opencv-pushbot
opencv-pushbot merged commit a6ed8f2 into opencv:3.4 May 7, 2019
@alalek alalek mentioned this pull request May 7, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants