Running the demo program "cifar10_tutorial.py" gives a runtime error on RTX 2080Ti. The output is showed below:
Using TensorFlow backend.
==> Preparing data..
Saving Directory: /tmp/autokeras_160TXP
Initializing search.
Initialization finished.
+----------------------------------------------+
| Training model 0 |
+----------------------------------------------+
Epoch-1, Current Metric - 0: 0%| | 0/1921 [00:00, ? batch/s]Process ForkProcess-1:
Traceback (most recent call last):
...
File "/home/xxx/anaconda3/envs/tensorflow/lib/python3.6/site-packages/torch/nn/functional.py", line 1623, in batch_norm
training, momentum, eps, torch.backends.cudnn.enabled
RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED
However, when I run exactly the same code on Titan Xp. Everything just works perfectly fine.
Steps to reproduce the behavior:
Expected to be run normally.
Include the details about the versions of:
+1 on RTX2070
I was able to fix this. I used the latest commit from master. And built it using the git clone method using the bleeding edge (manual) instructions.
Modified the setup.py file to the following after cloning:
`from distutils.core import setup
from setuptools import find_packages
setup(
name='autokeras',
packages=find_packages(exclude=('tests',)),
install_requires=['scipy==1.2.0',
'tensorflow-gpu==1.13.1',
'numpy==1.16.1',
'scikit-learn==0.20.2',
'scikit-image==0.14.2',
'tqdm==4.31.0',
'imageio==2.5.0',
'requests==2.21.0'
],
version='0.3.7',
description='AutoML for deep learning',
author='DATA Lab at Texas A&M University',
author_email='[email protected]',
url='http://autokeras.com',
download_url='https://github.com/keras-team/autokeras/archive/0.3.7.tar.gz',
keywords=['AutoML', 'keras'],
classifiers=[]
)`
Notice the change in install_requires
Steps to install:
1) conda create -c conda-forge -n autokeras python=3.6
2) conda install -c conda-forge cython
3) conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
4) pip install -r requirements.txt
5) pip install keras
6) pip install -r requirements.txt
7) python setup.py install
Hope it helps.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm experiencing the same issue, though can build and run cutting edge with my RTX 2080. Unfortunately in doing so autokeras doesn't seem to leverage the GPU at all..
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
I was able to fix this. I used the latest commit from master. And built it using the git clone method using the bleeding edge (manual) instructions.
Modified the setup.py file to the following after cloning:
`from distutils.core import setup
from setuptools import find_packages
setup(
name='autokeras',
packages=find_packages(exclude=('tests',)),
install_requires=['scipy==1.2.0',
'tensorflow-gpu==1.13.1',
'numpy==1.16.1',
'scikit-learn==0.20.2',
'scikit-image==0.14.2',
'tqdm==4.31.0',
'imageio==2.5.0',
'requests==2.21.0'
],
version='0.3.7',
description='AutoML for deep learning',
author='DATA Lab at Texas A&M University',
author_email='[email protected]',
url='http://autokeras.com',
download_url='https://github.com/keras-team/autokeras/archive/0.3.7.tar.gz',
keywords=['AutoML', 'keras'],
classifiers=[]
)`
Notice the change in install_requires
Steps to install:
1) conda create -c conda-forge -n autokeras python=3.6
2) conda install -c conda-forge cython
3) conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
4) pip install -r requirements.txt
5) pip install keras
6) pip install -r requirements.txt
7) python setup.py install
Hope it helps.