Closed WayneMind closed 2 years ago
Hi, when I run main.py passes through these two files . the function os.makedirs( ) points out these filename or extension is too long to create. "[WinError 206] The filename or extension is too long. "
EncoderDecoderAgent/BaseTrain.py (line 89) self.PATH = os.path.join(Path(os.path.abspath(os.path.dirname(file))).parent, f'Results/{self.DATASET_NAME}/' f'{self.model_kind}; ' f'DATA_KIND({self.data_train.data_kind}); ' f'BEGIN_DATE({self.begin_date}); ' f'END_DATE({self.end_date}); ' f'SPLIT_POINT({self.split_point}); ' f'WindowSize({self.window_size}); ' f'BATCH_SIZE{self.BATCH_SIZE}; ' f'GAMMA{self.GAMMA}; ' f'REPLAY_MEMORY_SIZE{self.ReplayMemorySize}; ' f'TARGET_UPDATE{self.TARGET_UPDATE}; ' f'N_STEP{self.n_step}')
if not os.path.exists(self.PATH): os.makedirs(self.PATH)
DeepRLAgent/BaseTrain.py (line 100) self.PATH = os.path.join(Path(os.path.abspath(os.path.dirname(file))).parent, f'Results/{self.DATASET_NAME}/' f'{self.model_kind}; ' f'DATA_KIND({self.data_train.data_kind}); ' f'BEGIN_DATE({self.begin_date}); ' f'END_DATE({self.end_date}); ' f'SPLIT_POINT({self.split_point}); ' f'StateMode({self.state_mode}); ' f'WindowSize({self.window_size}); ' f'BATCH_SIZE{self.BATCH_SIZE}; ' f'GAMMA{self.GAMMA}; ' f'REPLAY_MEMORY_SIZE{self.ReplayMemorySize}; ' f'TARGET_UPDATE{self.TARGET_UPDATE}; ' f'N_STEP{self.n_step}')
I would appreciate it if you can tell me where the problem is. THANKS!
Resolve the windows limit on the length of the file name by changing the registry key.The problem has been resolved,thanks.
Hi, when I run main.py passes through these two files . the function os.makedirs( ) points out these filename or extension is too long to create. "[WinError 206] The filename or extension is too long. "
EncoderDecoderAgent/BaseTrain.py (line 89) self.PATH = os.path.join(Path(os.path.abspath(os.path.dirname(file))).parent, f'Results/{self.DATASET_NAME}/' f'{self.model_kind}; ' f'DATA_KIND({self.data_train.data_kind}); ' f'BEGIN_DATE({self.begin_date}); ' f'END_DATE({self.end_date}); ' f'SPLIT_POINT({self.split_point}); ' f'WindowSize({self.window_size}); ' f'BATCH_SIZE{self.BATCH_SIZE}; ' f'GAMMA{self.GAMMA}; ' f'REPLAY_MEMORY_SIZE{self.ReplayMemorySize}; ' f'TARGET_UPDATE{self.TARGET_UPDATE}; ' f'N_STEP{self.n_step}')
DeepRLAgent/BaseTrain.py (line 100) self.PATH = os.path.join(Path(os.path.abspath(os.path.dirname(file))).parent, f'Results/{self.DATASET_NAME}/' f'{self.model_kind}; ' f'DATA_KIND({self.data_train.data_kind}); ' f'BEGIN_DATE({self.begin_date}); ' f'END_DATE({self.end_date}); ' f'SPLIT_POINT({self.split_point}); ' f'StateMode({self.state_mode}); ' f'WindowSize({self.window_size}); ' f'BATCH_SIZE{self.BATCH_SIZE}; ' f'GAMMA{self.GAMMA}; ' f'REPLAY_MEMORY_SIZE{self.ReplayMemorySize}; ' f'TARGET_UPDATE{self.TARGET_UPDATE}; ' f'N_STEP{self.n_step}')
I would appreciate it if you can tell me where the problem is. THANKS!