if i want to modify part of the structure of Pnet ,Rnet and Onet. Can i just modify on factory.py directly,or i need retraining these three network.