안녕하세요
도커에 익숙치 않아서 질문드립니다.
보내주신 링크 템플릿따라 진행을 해봤는데
FROM tensorflow/tensorflow:2.1.0rc1-gpu-py3으로 이미지를 build하고 압축하여 업로드 했더니
File "./train.py", line 137, in
main()
File "./train.py", line 73, in main
os.mkdir(LOG_DIR)
FileNotFoundError: [Errno 2] No such file or directory: '/data/volume/logs/cf1d299a-388e-4e0c-b24d-908ee926c657'
...
FileNotFoundError: [Errno 2] File b'/data/volume/history/history.csv' does not exist: b'/data/volume/history/history.csv'
와 같이 오류가 생겼습니다.
여러 시도를 해보았는데 계속 같은 오류가 생겨 질문드립니다.
Created by hdwycy history.csv 내용입니다.
```
epoch,acc,loss,val_acc,val_loss
0,0.5,0.7817095160484314,1.0,0.6629137396812439
```
덕분에 위의 에러는 해결했습니다. 감사합니다!
이후에도 에러가 생겨 해결했는데
TASK ID = 5fb3b144-11cc-45fd-ae0c-89601128045f에서
Traceback (most recent call last):
File "./inference.py", line 53, in
main()
File "./inference.py", line 27, in main
cls_bestepoch = cls_df[cls_df['val_acc'] == cls_df['val_acc'].max()]['epoch'].values[0]+1
File "/usr/local/lib/python3.6/dist-packages/pandas/core/frame.py", line 2995, in __getitem__
indexer = self.columns.get_loc(key)
File "/usr/local/lib/python3.6/dist-packages/pandas/core/indexes/base.py", line 2899, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 107, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'val_acc'
이 부분의 에러를 history.csv 파일을 확인해보고 해결하고 싶은데 볼수가없어서 다시한번 질문을 드립니다. 1. FileNotFoundError: [Errno 2] No such file or directory: '/data/volume/logs/cf1d299a-388e-4e0c-b24d-908ee926c657'
/data/volume 에 logs folder는 미리 만들어져있는 folder가 아니어서
os.mkdir() 대신 os.makedirs() 를 사용하셔야합니다.
2. FileNotFoundError: [Errno 2] File b'/data/volume/history/history.csv' does not exist: b'/data/volume/history/history.csv'
train.sh 가 fail로 history.csv가 안만들어져서 실제로 존재하지 않는 파일입니다. task id 알려주세요