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

bug #15

Open
dongchen1998 opened this issue Mar 28, 2024 · 0 comments
Open

bug #15

dongchen1998 opened this issue Mar 28, 2024 · 0 comments

Comments

@dongchen1998
Copy link

(graphsol) do@MAC GraphSol % python Train.py
split_seed: 2333

========== Fold 1 ==========
Training on 1891 examples, Validation on 473 examples

========== Train epoch 1 ==========
0%| | 0/1891 [00:03<?, ?it/s]
Traceback (most recent call last):
File "Train.py", line 504, in
cross_validation(train_dataframe,fold_number=5)
File "Train.py", line 498, in cross_validation
train(model, train_dataframe, valid_dataframe, fold + 1)
File "Train.py", line 353, in train
epoch_loss_train_avg = train_one_epoch(model, train_loader, epoch + 1)
File "Train.py", line 241, in train_one_epoch
for data in tqdm(data_loader):
File "/Users/dongjiacheng/anaconda3/envs/graphsol/lib/python3.8/site-packages/tqdm/std.py", line 1181, in iter
for obj in iterable:
File "/Users/dongjiacheng/anaconda3/envs/graphsol/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 631, in next
data = self._next_data()
File "/Users/dongjiacheng/anaconda3/envs/graphsol/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1346, in _next_data
return self._process_data(data)
File "/Users/dongjiacheng/anaconda3/envs/graphsol/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1372, in _process_data
data.reraise()
File "/Users/dongjiacheng/anaconda3/envs/graphsol/lib/python3.8/site-packages/torch/_utils.py", line 722, in reraise
raise exception
FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/Users/dongjiacheng/anaconda3/envs/graphsol/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "/Users/dongjiacheng/anaconda3/envs/graphsol/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 51, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/Users/dongjiacheng/anaconda3/envs/graphsol/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 51, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/Users/dongjiacheng/Desktop/coder/mtd/code/Tm/GraphSol/Train.py", line 129, in getitem
sequence_feature = load_features(sequence_name, sequence, self.mean, self.std, self.blosum)
File "/Users/dongjiacheng/Desktop/coder/mtd/code/Tm/GraphSol/Train.py", line 72, in load_features
oneD_matrix = np.load(Dataset_Path + 'node_features/' + sequence_name + '.npy')
File "/Users/dongjiacheng/anaconda3/envs/graphsol/lib/python3.8/site-packages/numpy/lib/npyio.py", line 405, in load
fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: './Data/node_features/yfjG.npy'

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

1 participant