Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime error 발생 #171

Open
yoloo795 opened this issue Dec 14, 2022 · 1 comment
Open

runtime error 발생 #171

yoloo795 opened this issue Dec 14, 2022 · 1 comment
Assignees

Comments

@yoloo795
Copy link

yoloo795 commented Dec 14, 2022

런타임 에러가 발생합니다.

torch의 serialization에서

class _open_zipfile_writer_file(_opener):
def init(self, name) -> None:
super(_open_zipfile_writer_file, self).init(torch._C.PyTorchFileWriter(str(name)))

이 동작을 시행할 때 RuntimeError: Parent directory $path does not exist 가 발생하네요..
$path 경로에 폴더가 있는데 왜 발생하는지 모르겠습니다..

혹시 아시는 분은 해결방법 알려주시면 너무 감사하겠습니다..

[원문]
Error executing job with overrides: ['model=ds2', 'train=ds2_train', 'train.dataset_path=C:\Users\shwns\Desktop\Data']
Traceback (most recent call last):
File "./bin/main.py", line 163, in main
last_model_checkpoint = train(config)
File "./bin/main.py", line 122, in train
Checkpoint(model, self.optimizer, self.trainset_list, self.validset, epoch).save()
File "C:\Users\shwns\Desktop\xxx\xxx\xxx\kospeech-latest\kospeech-latest\bin\kospeech\checkpoint\checkpoint.py", line 81, in save
torch.save(trainer_states, os.path.join(os.getcwd(), self.TRAINER_STATE_NAME))
File "C:\Users\shwns\anaconda3\envs\vowing_1125\lib\site-packages\torch\serialization.py", line 424, in save
with _open_zipfile_writer(f) as opened_zipfile:
File "C:\Users\shwns\anaconda3\envs\vowing_1125\lib\site-packages\torch\serialization.py", line 311, in _open_zipfile_writer
return container(name_or_buffer) # C:\Users\shwns\Desktop\xxx\xxx\xxx\kospeech-latest\kospeech-latest\outputs\2022-12-14\12-20-39\trainer_states.pt
File "C:\Users\shwns\anaconda3\envs\vowing_1125\lib\site-packages\torch\serialization.py", line 289, in init
super(_open_zipfile_writer_file, self).init(torch._C.PyTorchFileWriter(str(name)))
RuntimeError: Parent directory C:\Users\shwns\Desktop\xxx\xxx\xxx\kospeech-latest\kospeech-latest\outputs\2022-12-14\13-32-47 does not exist.

@XEL-Maker
Copy link

혹시 옵션중에 resume 를 True로 하셨나요?
File "./bin/main.py", line 163, in main
last_model_checkpoint = train(config)
이 오류는 저도 resume 시도할려고 True로 설정했을때
어떤 명령어 넣어줘야되는지 몰라서 그냥 실행했을때 나온 에러였습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants