I want to know how to perform quantization-aware training for deeplab-v3+

删除回忆录丶 提交于 2019-12-11 07:33:31

问题


I have been trying to perform quantization aware training for deeplab using the guide given in this link https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/quantize However, I am not sure where exactly to put the below 2 lines that are required to activate the quantization

g = tf.get_default_graph() tf.contrib.quantize.create_training_graph(input_graph=g,quant_delay=2000000)

Where exactly in the deeplab train.py file do I put the above two lines? I already tried on line 355, which is right after computing the loss and just before the optimizer initialization, as mentioned in the guide, but it gives a segmentation fault.

来源:https://stackoverflow.com/questions/55731996/i-want-to-know-how-to-perform-quantization-aware-training-for-deeplab-v3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!