hli1221 / imagefusion_densefuse

DenseFuse (IEEE TIP 2019, Highly Cited Paper) - Python 3.6, TensorFlow 1.8.0
244 stars 62 forks source link

Running the code #12

Closed samyakshah6825 closed 4 years ago

samyakshah6825 commented 4 years ago

Hi, Thanks for sharing the code of your work. I am new to this field and this paper helped me understand things very clearly. However, I am not able to run the code given. While running I am facing this errors, Hope you could help me with it.

Thanks runfile('C:/Users/samya/Desktop/imagefusion_densefuse-master/main.py', wdir='C:/Users/samya/Desktop/imagefusion_densefuse-master') Traceback (most recent call last):

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import *

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper()

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

File "C:\Users\samya\anaconda3\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file)

File "C:\Users\samya\anaconda3\lib\imp.py", line 342, in load_dynamic return _load(spec)

ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 1, in runfile('C:/Users/samya/Desktop/imagefusion_densefuse-master/main.py', wdir='C:/Users/samya/Desktop/imagefusion_densefuse-master')

File "C:\Users\samya\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 435, in runfile umr.run()

File "C:\Users\samya\anaconda3\lib\site-packages\spyder_kernels\customize\umr.py", line 133, in run if self.is_module_reloadable(module, modname):

File "C:\Users\samya\anaconda3\lib\site-packages\spyder_kernels\customize\umr.py", line 77, in is_module_reloadable if (path_is_library(getattr(module, 'file', None),

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow__init.py", line 50, in getattr__ module = self._load()

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow__init__.py", line 44, in _load module = _importlib.import_module(self.name)

File "C:\Users\samya\anaconda3\lib\importlib__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level)

File "", line 1006, in _gcd_import

File "", line 983, in _find_and_load

File "", line 953, in _find_and_load_unlocked

File "", line 219, in _call_with_frames_removed

File "", line 1006, in _gcd_import

File "", line 983, in _find_and_load

File "", line 967, in _find_and_load_unlocked

File "", line 677, in _load_unlocked

File "", line 728, in exec_module

File "", line 219, in _call_with_frames_removed

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core__init__.py", line 42, in from . _api.v2 import audio

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core_api\v2\audio__init__.py", line 10, in from tensorflow.python.ops.gen_audio_ops import decode_wav

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\ops\gen_audio_ops.py", line 9, in from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow__init.py", line 50, in getattr__ module = self._load()

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow__init__.py", line 44, in _load module = _importlib.import_module(self.name)

File "C:\Users\samya\anaconda3\lib\importlib__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level)

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python__init__.py", line 49, in from tensorflow.python import pywrap_tensorflow

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in raise ImportError(msg)

ImportError: Traceback (most recent call last): File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "C:\Users\samya\anaconda3\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Users\samya\anaconda3\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found.

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.

Error in callback <bound method AutoreloadMagics.post_execute_hook of <autoreload.AutoreloadMagics object at 0x00000205D00D8308>> (for post_execute): Traceback (most recent call last):

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import *

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper()

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

File "C:\Users\samya\anaconda3\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file)

File "C:\Users\samya\anaconda3\lib\imp.py", line 342, in load_dynamic return _load(spec)

ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\samya\anaconda3\lib\site-packages\IPython\extensions\autoreload.py", line 538, in post_executehook , pymtime = self._reloader.filename_and_mtime(sys.modules[modname])

File "C:\Users\samya\anaconda3\lib\site-packages\IPython\extensions\autoreload.py", line 184, in filename_and_mtime if not hasattr(module, 'file') or module.file is None:

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow__init.py", line 50, in getattr__ module = self._load()

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow__init__.py", line 44, in _load module = _importlib.import_module(self.name)

File "C:\Users\samya\anaconda3\lib\importlib__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level)

File "", line 1006, in _gcd_import

File "", line 983, in _find_and_load

File "", line 953, in _find_and_load_unlocked

File "", line 219, in _call_with_frames_removed

File "", line 1006, in _gcd_import

File "", line 983, in _find_and_load

File "", line 967, in _find_and_load_unlocked

File "", line 677, in _load_unlocked

File "", line 728, in exec_module

File "", line 219, in _call_with_frames_removed

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core__init__.py", line 42, in from . _api.v2 import audio

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core_api\v2\audio__init__.py", line 10, in from tensorflow.python.ops.gen_audio_ops import decode_wav

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\ops\gen_audio_ops.py", line 9, in from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow__init.py", line 50, in getattr__ module = self._load()

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow__init__.py", line 44, in _load module = _importlib.import_module(self.name)

File "C:\Users\samya\anaconda3\lib\importlib__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level)

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python__init__.py", line 49, in from tensorflow.python import pywrap_tensorflow

File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in raise ImportError(msg)

ImportError: Traceback (most recent call last): File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\samya\anaconda3\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "C:\Users\samya\anaconda3\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Users\samya\anaconda3\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found.

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.