gitter-lab / nn4dms

Neural networks for deep mutational scanning data
MIT License
66 stars 16 forks source link

Unable to save TensorFlow model on Windows #8

Closed agitter closed 8 months ago

agitter commented 8 months ago

A user emailed to describe errors they encountered saving models when running nn4dms. The problem has been resolved, but I am logging them in a closed issue in case others encounter similar problems.

The user was running nn4dms on Windows. The error occurred when trying to save the model after epoch 1 with the message Not Found: Failed to create a NewWriteableFile: followed by the path to the checkpoint file in the training log directory and then The system cannot find the path specified. This happened in line 267 of code/regression.py.

The solution was to move the training log directory to a different path that happened to be on the D: drive. The different path may have helped because the absolute path was not as long or did not contain spaces.