Update inference.py

Disable complex optimization by default