Closed jkterry1 closed 2 years ago
Hello, as a hotfix, two things you can do:
I uncompressed a best_model.zip file, and at the bottom of the data file, this was contained:
We should probably solve the root cause which probably comes from that piece of code
which is probably not needed anymore...
PS: I'm moving that issue to the RL Zoo
🐛 Bug
In this PR https://github.com/DLR-RM/rl-baselines3-zoo/pull/128 several months ago, functionality was added to log optimal policies during hyperparameter optimization. I've been using this feature to debug odd behaviors in various custom environment over the past several months (using distributed optimization), and recently I started pulling saved policies off the servers for further local analysis of physics bugs.
When I started to try and load these policies locally, I got errors that I needed to install Optuna, then mysqlclient, then that it couldn't connect to the IP address of the the server with the DB optuna used for distributed optimization. Suspecting that something was included when the pickled policies were saved that shouldn't have been, I uncompressed a
best_model.zip
file, and at the bottom of thedata
file, this was contained:So Optuna information that shouldn't be saved really is being saved. I'm happy to submit a PR to fix this, but after spending the past 30 minutes looking through code I'm not entirely clear how this could be done, so advice would be appreciated.
System Info
Describe the characteristic of your environment:
I know I'm using a slightly older version of pytorch/SB3, but upgrading would take a lot of work on the cluster and there's been no relevant changes to this after checking.