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
报错AttributeError: 'NoneType' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.
您好,我在运行train_k_fold_cross_val.py时,显示在 self.model.load_state_dict(torch.load(best_model_path))那里
报错AttributeError: 'NoneType' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.
我是换成自己数据集后运行报错的,使用原本的数据集时不会报错
我考虑过是为自己数据集的问题,但是在train.py里使用自己的数据集并不会报错,所以我想问下我要怎么解决这个报错问题呢,是新手所以不太懂怎样解决
谢谢
The text was updated successfully, but these errors were encountered: