jumpstart-rl icon indicating copy to clipboard operation
jumpstart-rl copied to clipboard

AttributeError: can't set attribute

Open astonisingHSR opened this issue 1 year ago • 1 comments

I am trying to run the "examples/train_jsrl_curriculum.py", but there is error occured at the file "jsrl/jsrl.py" ` eval_callback = JSRLEvalCallback(

self.env, callback_after_eval=JSRLAfterEvalCallback( self.policy, self.logger, verbose=self.verbose, ), eval_freq=self.policy.eval_freq, n_eval_episodes=self.policy.n_eval_episodes, verbose=self.verbose, )and class JSRLAfterEvalCallback(BaseCallback): def init(self, policy, logger, *args, **kwargs): super().init(*args, **kwargs) self.policy = policy self.logger = logger ` The error is "AttributeError: can't set attribute", it seems that the property "logger" can't be directly set.

astonisingHSR avatar Sep 03 '24 03:09 astonisingHSR

I am trying to run the "examples/train_jsrl_curriculum.py", but there is error occured at the file "jsrl/jsrl.py" ` eval_callback = JSRLEvalCallback(

self.env, callback_after_eval=JSRLAfterEvalCallback( self.policy, self.logger, verbose=self.verbose, ), eval_freq=self.policy.eval_freq, n_eval_episodes=self.policy.n_eval_episodes, verbose=self.verbose, )and class JSRLAfterEvalCallback(BaseCallback): def init(self, policy, logger, *args, **kwargs): super().init(*args, **kwargs) self.policy = policy self.logger = logger ` The error is "AttributeError: can't set attribute", it seems that the property "logger" can't be directly set.

Hello, bro. I meet the same problem as you. Have you solved it?

liutianyi123 avatar Apr 14 '25 13:04 liutianyi123