如何使用文件限制限制为 Google Cloud 保存 pbtxt 和 pb?

How to save pbtxt and pb for Google Cloud with the file limit restriction?

我在 Tensorflow 中有一个经过训练的模型并且已经保存了 pb (500mb) 和 pbtxt (1.5gb),但是 Google 云文件限制为 250mb。有解决此问题的人可以指导我如何减小尺寸吗?

您可以使用 quantization 来减小模型的尺寸(可以将其缩小到原始尺寸的 25%)。基本上这从使用浮点数切换到使用 8 位整数。