SystemErrorWang / White-box-Cartoonization

Official tensorflow implementation for CVPR2020 paper “Learning to Cartoonize Using White-box Cartoon Representations”
3.95k stars 737 forks source link

python cartoonize.py command #21

Closed Kytol closed 4 years ago

Kytol commented 4 years ago

python cartoonize.py command is where I hit a wall to build this environment to work. It brings this


(FO5) C:\Users\janne\wbc\White-box-Cartoonization\test_code>python cartoonize.py
Traceback (most recent call last):
  File "C:\Users\janne\anaconda3\envs\FO5\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\janne\anaconda3\envs\FO5\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\janne\anaconda3\envs\FO5\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "C:\Users\janne\anaconda3\envs\FO5\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\janne\anaconda3\envs\FO5\lib\imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: Määritettyä osaa ei löydy. [specific part isnt found /translated]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cartoonize.py", line 4, in <module>
    import tensorflow as tf
  File "C:\Users\janne\anaconda3\envs\FO5\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "C:\Users\janne\anaconda3\envs\FO5\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\janne\anaconda3\envs\FO5\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\janne\anaconda3\envs\FO5\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\janne\anaconda3\envs\FO5\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\janne\anaconda3\envs\FO5\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "C:\Users\janne\anaconda3\envs\FO5\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\janne\anaconda3\envs\FO5\lib\imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: Määritettyä osaa ei löydy. [specific part isnt found /translated]

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

I've downloaded these dependencies pip install opencv-python pip install tensorflow-gpu==1.12.0 pip install scikit-image==0.14.5 pip install ffmpeg pip install tqdm

Thanks for any help beforehand :)

SystemErrorWang commented 4 years ago

@JanneMatiasKytola This is a tensorflow installation problem, I am not sure why this occurs. I noticed your are using windows system, it's probably caused by nvidia-driver and cuda version.