"ValueError: too many values to unpack" after a couple of evaluations using the EvalCallback #2094
Open
5 tasks done
Labels
custom gym env
Issue related to Custom Gym Env
🐛 Bug
When using a custom PyTorch feature extractor (a SCINet model) with SB3 (PPO), the training eventually crashes at evaluation time with:
I suspect something is accidentally storing a tuple in self._modules, but I have not found any direct assignment. The “too many values to unpack” error occurs in stable-baselines3 code only when calling model.predict() during evaluation.
Could there be anything in SB3’s base policy or callbacks that might inadvertently store (moduleA, moduleB) in _modules? Or is there some recommended debugging step to see which submodule is a tuple?
Code example
Relevant log output / Error message
System Info
No response
Checklist
The text was updated successfully, but these errors were encountered: