I can generated right images using the demo.py, but got below images when used the inference.py 