How to run Modeller:
Put alignment file, template pdb file (named as In.pdb), python script in one folder.
To generate models, run command:
python modeller.py
To correct residues' number in the models, run command:
python residue_correction.py
Here is a video that shows how to run Modeller to generate models and correct residues in models.