You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
txt파일을 쓰는 sampler라는 함수가 있을때
def sampler(directory_path, output_path):
...
f = open(output_path,'w')
f.write("".join(triplets))
f.close()
print("done")
BASE_PATH = DATASET_PATH+'/train/train_data'
nsml.cache(triplet_sampler, directory_path= BASE_PATH, output_path="./output.txt") 로 저장됨을 확인하였습니다.
다른 세션에서 이 file을 사용하고 싶은데요.
다른 세션의 main함수에서
nsml.cache(triplet_sampler, directory_path= BASE_PATH, output_path="./output.txt")
f = open(./output.txt)
f_read = f.read()
FileNotFoundError: [Errno 2] No such file or directory: './output.txt'
현재 app폴더에 txt를 추가해서 같이 올리는 것은 txt사이즈가 50mb가 넘어서 불가능합니다.
The text was updated successfully, but these errors were encountered:
기타
txt파일을 쓰는 sampler라는 함수가 있을때
def sampler(directory_path, output_path):
...
f = open(output_path,'w')
f.write("".join(triplets))
BASE_PATH = DATASET_PATH+'/train/train_data'
다른 세션에서 이 file을 사용하고 싶은데요.
다른 세션의 main함수에서
nsml.cache(triplet_sampler, directory_path= BASE_PATH, output_path="./output.txt")
f = open(./output.txt)
f_read = f.read()
FileNotFoundError: [Errno 2] No such file or directory: './output.txt'
현재 app폴더에 txt를 추가해서 같이 올리는 것은 txt사이즈가 50mb가 넘어서 불가능합니다.
The text was updated successfully, but these errors were encountered: