Fix demo_inference to properly normalize input.
Before the fix the demo_inference.py used batch_norm and it did the normalization of input image implicitly. If at inference time the batch_norm was disabled the inference produced incorrect results. This fix does the proper input image normalization and disables the batch_norm at inference time.
Showing
135 KB
118 KB
194 KB
127 KB
127 KB
256 KB
116 KB
180 KB
70.7 KB
206 KB
126 KB
160 KB
149 KB
132 KB
252 KB
183 KB
129 KB