# Quantize network stops at "Network initialization done." step

**URL:** <https://forums.openmv.io/t/quantize-network-stops-at-network-initialization-done-step/1106>\
**Category:** OpenMV Boards\
**Created:** [January 24, 2019, 8:03am UTC](https://forums.openmv.io/t/quantize-network-stops-at-network-initialization-done-step/1106 "2019-01-24T08:03:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisPyres66](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/chrispyres66/32/39_2.png) [@chrisPyres66](https://forums.openmv.io/u/chrisPyres66)\
**Post date:** [January 24, 2019, 8:03am UTC](https://forums.openmv.io/t/quantize-network-stops-at-network-initialization-done-step/1106/1 "2019-01-24T08:03:28Z")

</div>

Hello,

I trained and i try to quantize the network but it stops at “Network initialization done.” step.

The commands is :  
python2 nn\_quantizer.py --gpu --model models/lettre\_O\_V1/lettre\_O\_train\_test.prototxt --weights models/lettre\_O\_V1/lettre\_O\_iter\_1300.caffemodel --save models/lettre\_O\_V1/lettre\_O.pkl

I join the log.txt of the command and lettre\_O\_train\_test.prototxt network achitecture.  
lettre\_O\_iter\_1300.caffemodel trained network is too big (40.2Mo).

Help would be great,  
Thanks  
[files.zip](https://forums.openmv.io/uploads/short-url/aiaXKBqzlN6YLRdd5Gtd5M6eb6U.zip) (3.19 KB)

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [January 24, 2019, 4:52pm UTC](https://forums.openmv.io/t/quantize-network-stops-at-network-initialization-done-step/1106/2 "2019-01-24T16:52:46Z")

</div>

Hi, that script isn’t robust if the network is bad when you trained it. The error is happening before the conversion. What accuracy did you get on training the net and testing it? If they were bogus you cannot convert the network.
