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

Training Failed #11

Open
spacedorito opened this issue Aug 3, 2021 · 0 comments
Open

Training Failed #11

spacedorito opened this issue Aug 3, 2021 · 0 comments

Comments

@spacedorito
Copy link

I created a virtual environment with python2.7 and the other required packages to run this. I was able to run the demo without issue, but when I go to run the training I get a conga line of errors! This is what I get in my terminal when I attempt to run python train.py --gpus 0 -j 4...

==> creating model: stacks=4, blocks=1, z-res=[1, 2, 4, 64]
coarse to fine mode: True
p2v params: 13.01M
v2c params: 19.46M
using ADAM optimizer.

Epoch: 1 | LR: 0.00025000
pre_training...
Traceback (most recent call last):
File "train.py", line 278, in
main(parser.parse_args())
File "train.py", line 90, in main
run(model, train_loader, mode, criterion_vox, criterion_coord, optimizer_G, optimizer_P)
File "train.py", line 144, in run
for i, (inputs, target, meta) in enumerate(data_loader):
File "/home/spacedorito/mypyenv2.7/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 345, in next
data = self._next_data()
File "/home/spacedorito/mypyenv2.7/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 856, in _next_data
return self._process_data(data)
File "/home/spacedorito/mypyenv2.7/lib/python2.7/site-packages/torch/utils/data/dataloader.py", line 881, in _process_data
data.reraise()
File "/home/spacedorito/mypyenv2.7/lib/python2.7/site-packages/torch/_utils.py", line 394, in reraise
raise self.exc_type(msg)
IOError: Caught IOError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/spacedorito/mypyenv2.7/lib/python2.7/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "/home/spacedorito/mypyenv2.7/lib/python2.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/spacedorito/venv-for-landmark-detection/landmark_detection_training/datasets/fa68pt3D.py", line 100, in getitem
img = load_image(img_path) # CxHxW
File "/home/spacedorito/venv-for-landmark-detection/landmark_detection_training/utils/imutils.py", line 24, in load_image
return im_to_torch(scipy.misc.imread(img_path, mode='RGB'))
File "/home/spacedorito/mypyenv2.7/lib/python2.7/site-packages/numpy/lib/utils.py", line 101, in newfunc
return func(*args, **kwds)
File "/home/spacedorito/mypyenv2.7/lib/python2.7/site-packages/scipy/misc/pilutil.py", line 164, in imread
im = Image.open(name)
File "/home/spacedorito/mypyenv2.7/lib/python2.7/site-packages/PIL/Image.py", line 2766, in open
fp = builtins.open(filename, "rb")
IOError: [Errno 2] No such file or directory: 'data/300wLP/images/LFPW/LFPW_image_train_0626_13.jpg'

I've checked and confirmed that LFPW_image_train_0626_13.jpg is in the correct place. Any help is much appreciated.

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