OfflineRL icon indicating copy to clipboard operation
OfflineRL copied to clipboard

when i using this to train ,there comes a attributrerror

Open houmaolin opened this issue 4 years ago • 1 comments

image

Usage of Session.init is deprecated! Traceback (most recent call last): File "examples/train_d4rl.py", line 19, in fire.Fire(run_algo) File "/root/anaconda3/envs/off/lib/python3.7/site-packages/fire/core.py", line 141, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/root/anaconda3/envs/off/lib/python3.7/site-packages/fire/core.py", line 471, in _Fire target=component.name) File "/root/anaconda3/envs/off/lib/python3.7/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "examples/train_d4rl.py", line 12, in run_algo algo_trainer = algo_trainer_obj(algo_init, algo_config) File "/root/git/OfflineRL/offlinerl/algo/modelfree/cql.py", line 100, in init super(AlgoTrainer, self).init(args) File "/root/git/OfflineRL/offlinerl/algo/base.py", line 29, in init self.index_path = self.exp_logger.repo.index_path AttributeError: 'Session' object has no attribute 'repo'

houmaolin avatar Feb 10 '22 11:02 houmaolin

Sorry for the late reply. The above code may be compatible only for older aim (lower than 2.0.27). We have made a quick fix to this issue and please try the newest version that should have solved this issue.

mzktbyjc2016 avatar Jul 13 '22 09:07 mzktbyjc2016