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

can this code run without GPU or cuda support #21

Open
preksha12 opened this issue May 4, 2016 · 2 comments
Open

can this code run without GPU or cuda support #21

preksha12 opened this issue May 4, 2016 · 2 comments

Comments

@preksha12
Copy link

No description provided.

@edfungus
Copy link

Yes, I believe it can run on your cpu only. Set the gpu flag to -1

@MaxChu719
Copy link

[Chus-MacBook-Pro:deeppose chumax$ bash shells/train_lsp.sh
2016-09-20 11:08:00,279 [INFO] sys.version_info(major=2, minor=7, micro=12, releaselevel='final', serial=0)
2016-09-20 11:08:00,279 [INFO] chainer version: 1.15.0.1
2016-09-20 11:08:00,279 [INFO] cuda: False, cudnn: False
2016-09-20 11:08:00,279 [INFO] Namespace(adam_alpha=0.001, adam_beta1=0.9, adam_beta2=0.999, adam_eps=1e-08, base_zoom=1.5, batchsize=128, channel=3, coord_normalize=True, epoch=101, fliplr=True, fname_index=0, gcn=True, gpus='-1', ignore_label=-1, im_size=220, img_dir='data/lspet_dataset/images', joint_index=1, lr=0.01, lr_decay_freq=10, lr_decay_ratio=0.1, min_dim=0, model='models/AlexNet.py', n_joints=14, opt='Adam', resume_model=None, resume_opt=None, resume_param=None, rotate=True, rotate_range=10, seed=1701, show_log_iter=10, snapshot=10, symmetric_joints='[[8, 9], [7, 10], [6, 11], [2, 3], [1, 4], [0, 5]]', test_csv_fn='data/lspet_dataset/test_joints.csv', test_freq=10, train_csv_fn='data/lspet_dataset/train_joints.csv', translate=True, translate_range=5, valid_freq=5, weight_decay=0.0005, zoom=True, zoom_range=0.2)
2016-09-20 11:08:27,380 [INFO] data/lspet_dataset/train_joints.csv is ready
2016-09-20 11:08:30,394 [INFO] data/lspet_dataset/test_joints.csv is ready
Process Process-3:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python2.7/site-packages/chainer/iterators/multiprocess_iterator.py", line 163, in _worker
Process Process-1:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python2.7/site-packages/chainer/iterators/multiprocess_iterator.py", line 163, in _worker
    out_queue.put(dataset[index])
  File "/usr/local/lib/python2.7/site-packages/chainer/dataset/dataset_mixin.py", line 31, in __getitem__
    out_queue.put(dataset[index])
  File "/usr/local/lib/python2.7/site-packages/chainer/dataset/dataset_mixin.py", line 31, in __getitem__
    return self.get_example(index)
  File "/Users/chumax/Documents/PhD_Research/Example/deeppose/scripts/dataset.py", line 169, in get_example
    return self.get_example(index)
  File "/Users/chumax/Documents/PhD_Research/Example/deeppose/scripts/dataset.py", line 169, in get_example
Process Process-4:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python2.7/site-packages/chainer/iterators/multiprocess_iterator.py", line 163, in _worker
    out_queue.put(dataset[index])
  File "/usr/local/lib/python2.7/site-packages/chainer/dataset/dataset_mixin.py", line 31, in __getitem__
    return self.get_example(index)
  File "/Users/chumax/Documents/PhD_Research/Example/deeppose/scripts/dataset.py", line 169, in get_example
    image, joints = self.apply_rotate(image, joints, ignore_joints)
  File "/Users/chumax/Documents/PhD_Research/Example/deeppose/scripts/dataset.py", line 133, in apply_rotate
    joints = rot_mat.dot((joints - joint_center).T).T + joint_center
    image, joints = self.apply_rotate(image, joints, ignore_joints)
  File "/Users/chumax/Documents/PhD_Research/Example/deeppose/scripts/dataset.py", line 133, in apply_rotate
    joints = rot_mat.dot((joints - joint_center).T).T + joint_center
TypeError: Cannot cast array data from dtype('float64') to dtype('<U32') according to the rule 'safe'
TypeError: Cannot cast array data from dtype('float64') to dtype('<U32') according to the rule 'safe'
    image, joints = self.apply_rotate(image, joints, ignore_joints)
  File "/Users/chumax/Documents/PhD_Research/Example/deeppose/scripts/dataset.py", line 133, in apply_rotate
    joints = rot_mat.dot((joints - joint_center).T).T + joint_center
TypeError: Cannot cast array data from dtype('float64') to dtype('<U32') according to the rule 'safe'
Process Process-2:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python2.7/site-packages/chainer/iterators/multiprocess_iterator.py", line 163, in _worker
    out_queue.put(dataset[index])
  File "/usr/local/lib/python2.7/site-packages/chainer/dataset/dataset_mixin.py", line 31, in __getitem__
    return self.get_example(index)
  File "/Users/chumax/Documents/PhD_Research/Example/deeppose/scripts/dataset.py", line 169, in get_example
    image, joints = self.apply_rotate(image, joints, ignore_joints)
  File "/Users/chumax/Documents/PhD_Research/Example/deeppose/scripts/dataset.py", line 133, in apply_rotate
    joints = rot_mat.dot((joints - joint_center).T).T + joint_center
TypeError: Cannot cast array data from dtype('float64') to dtype('<U32') according to the rule 'safe'
^CTraceback (most recent call last):
  File "scripts/train.py", line 229, in <module>
    trainer.run()
  File "/usr/local/lib/python2.7/site-packages/chainer/training/trainer.py", line 266, in run
    update()
  File "/usr/local/lib/python2.7/site-packages/chainer/training/updater.py", line 169, in update
    self.update_core()
  File "/usr/local/lib/python2.7/site-packages/chainer/training/updater.py", line 280, in update_core
    batch = self.get_iterator('main').next()
  File "/usr/local/lib/python2.7/site-packages/chainer/iterators/multiprocess_iterator.py", line 67, in __next__
    batch = self._get()
  File "/usr/local/lib/python2.7/site-packages/chainer/iterators/multiprocess_iterator.py", line 144, in _get
    batch.append(self._data_queue.get())
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/queues.py", line 117, in get
    res = self._recv()
KeyboardInterrupt

I got the above error when i run it without gpu by passing -gpus -1 in shells/train_lsp.sh.

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

3 participants