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
113 KB
120 KB
219 KB
140 KB
144 KB
80.5 KB
100 KB
147 KB
105 KB
124 KB
171 KB
166 KB
139 KB
230 KB
136 KB