Closed agatadefr closed 3 years ago
Please try pip install tflearn==0.3.2
Hi @zsyzzsoft,
I updated tflearn==0.3.2
But I am still getting an error :
`{'base_network': 'VTN', 'n_cascades': 3, 'rep': 1, 'gpu': '0,1,2,3', 'checkpoint': None, 'dataset': 'datasets/liver.json', 'batch': 4, 'round': 20000, 'epochs': 5, 'debug': False, 'val_steps': 100, 'net_args': '', 'data_args': '', 'lr': 0.0001, 'clear_steps': False, 'finetune': None, 'name': None, 'logs': ''} [(<network.base_networks.VTNAffineStem object at 0x2aab0adfcb00>, {'raw_weight': 0, 'reg_weight': 0, 'weight': 1}), (<network.base_networks.VTN object at 0x2aab0adcdf60>, {'raw_weight': 0, 'weight': 1, 'reg_weight': 1}), (<network.base_networks.VTN object at 0x2aab0b17feb8>, {'raw_weight': 0, 'weight': 1, 'reg_weight': 1}), (<network.base_networks.VTN object at 0x2aab0b1f5da0>, {'raw_weight': 1, 'weight': 1, 'reg_weight': 1})] Graph built Traceback (most recent call last): File "/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1323, in _do_call return fn(*args) File "/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1293, in _run_fn self._extend_graph() File "/.local/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1354, in _extend_graph self._session, graph_def.SerializeToString(), status) File "/.local/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot assign a device for operation 'gaffdfrm/deform_stem_2/upsamp1to0/W': Operation was explicitly assigned to /gpu:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0 ]. Make sure the device specification refers to a valid device. [[Node: gaffdfrm/deform_stem_2/upsamp1to0/W = VariableV2[_class=["loc:@gaffdfrm/deform_stem_2/upsamp1to0/W"], container="", dtype=DT_FLOAT, shape=[4,4,4,3,35], shared_name="", _device="/gpu:0"]()]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "demo.py", line 285, in
Caused by op 'gaffdfrm/deform_stem_2/upsamp1to0/W', defined at:
File "demo.py", line 285, in
InvalidArgumentError (see above for traceback): Cannot assign a device for operation 'gaffdfrm/deform_stem_2/upsamp1to0/W': Operation was explicitly assigned to /gpu:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0 ]. Make sure the device specification refers to a valid device. [[Node: gaffdfrm/deform_stem_2/upsamp1to0/W = VariableV2[_class=["loc:@gaffdfrm/deform_stem_2/upsamp1to0/W"], container="", dtype=DT_FLOAT, shape=[4,4,4,3,35], shared_name="", _device="/gpu:0"]()]]
`
Are there GPUs on the machine? Did you install tensorflow-gpu
or tensorflow
?
Hi @zsyzzsoft ,
I run it on cluster and I can have an option with gpu and without gpu. Finally I mananed to run it properly. Thank You so much for your help !! Thank You @zsyzzsoft :)
Hi @zsyzzsoft ,
I run it on cluster and I can have an option with gpu and without gpu. Finally I mananed to run it properly. Thank You so much for your help !! Thank You @zsyzzsoft :)
I'm in the same situation as you. How did you solve it?Looking forward to your reply
Hi Guys,
I tried to run registration demo. My set up is python 3.6 and tensorflow=1.4 and cuda 8.0 But I am getting all the time an error : 0%| | 0/46 [00:00<?, ?it/s] 2%|â– | 1/46 [00:00<00:29, 1.51it/s] 13%|█▎ | 6/46 [00:00<00:18, 2.13it/s] 20%|█▉ | 9/46 [00:01<00:14, 2.58it/s] 33%|███▎ | 15/46 [00:01<00:08, 3.61it/s] 39%|███▉ | 18/46 [00:02<00:07, 3.90it/s] 54%|█████■| 25/46 [00:02<00:04, 4.84it/s] 65%|██████▌ | 30/46 [00:02<00:02, 6.59it/s] 72%|███████■| 33/46 [00:03<00:02, 6.09it/s] 85%|████████■| 39/46 [00:03<00:00, 8.26it/s] 91%|█████████â–| 42/46 [00:03<00:00, 7.87it/s] 100%|██████████| 46/46 [00:03<00:00, 11.52it/s] 140 180 160 200 Traceback (most recent call last): File "demo.py", line 285, in
main()
File "demo.py", line 55, in main
import tflearn
File "/.local/lib/python3.6/site-packages/tflearn/init.py", line 4, in
import tensorflow.compat.v1 as tf
ModuleNotFoundError: No module named 'tensorflow.compat'
Do I miss something ? or try any other version ?
I would appreciate for any help please.
Best, Agata