udacity / sdc-issue-reports

29 stars 6 forks source link

How to keep the Session active in the workspace #1423

Closed Yunying-Chen closed 5 years ago

Yunying-Chen commented 5 years ago

Workspaces automatically disconnect after 30 minutes of inactivity. However, I was running my project on the terminal workspace which took more than 30 minutes but it kept disconnecting in 30 minutes. How to solve this problem?

mvirgo commented 5 years ago

Hi Yunying -

Which project workspace is this for?

Yunying-Chen commented 5 years ago

Self-Driving Engineer ND, Term 3, Semantic Segmentation Project.

mvirgo commented 5 years ago

In the short-term, I'd suggest trying to run with smaller batch sizes and less epochs, and perhaps saving down the model and re-loading it to continue training. I can also add a script to help keep the workspace open a little longer, although that might take until next week for me to add.

I'll keep you updated once it's placed in!

mvirgo commented 5 years ago

Finally have this added in! If you are still working on this project, we've added a keep_alive.py script into the workspace (note you'd have to reset data to pull this update - it will delete any code you have worked on, so make sure to save it down or commit it somewhere externally before doing so). This script will keep the workspace alive until killed.