ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

Retrain with different net work size

Open tanakataiki4 opened this issue 8 years ago • 4 comments

Hi is there any way to retrain different net work size such as additional state or visual observation after training completed?

tanakataiki4 avatar Nov 15 '18 06:11 tanakataiki4

I don't think there is an easy way to do so. However, it is possible to copy weights from one tensorflow model to another. This isn't trivial and requires some knowledge of tensorflow.

I made a jupyter notebook (the file named copy_all_compatible_weights) where I do so for a small multi-layer perceptron. It is not related to a reinforcement learning agent, but some of the code might be reusable.

4rzael avatar Nov 19 '18 16:11 4rzael

We currently do not support this feature, and there are no plans to do so. However, the Tensorflow method @4rzael suggested is a good path to doing what you'd like to do.

ervteng avatar Dec 17 '18 23:12 ervteng

@4rzael Could you tell me if you find a way to use in unity ml agents too, let me know it Thanks .

tanakataiki4 avatar Dec 18 '18 05:12 tanakataiki4

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 02 '20 21:01 lock[bot]