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
问题解决了,模型其实已经保存了,只是文件太大打不开,你可以使用这段代码将checkpoints文件夹压缩
`import shutil
import os
def compress_folder(folder_name, output_path):
"""
Compresses the specified folder into a zip file.
Parameters:
folder_name (str): The name of the folder to compress.
output_path (str): The path of the output zip file.
"""
folder_path = os.path.abspath(folder_name)
if not os.path.exists(folder_path):
print(f'Folder "{folder_path}" does not exist.')
return
shutil.make_archive(output_path, 'zip', folder_path)
print(f'Folder "{folder_path}" has been compressed into "{output_path}.zip"')
训练可以正常进行,但是不知道训练中途保存的参数会保存在哪里,同时发现inference.py需要的标签checkpoint的内容是空的,请问配置文件里的checkpoint应该怎么填,什么时候填,以及训练时的参数会保存在哪里
The text was updated successfully, but these errors were encountered: