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

An error in networks.resample2d_package #3

Open
laulampaul opened this issue Dec 9, 2020 · 5 comments
Open

An error in networks.resample2d_package #3

laulampaul opened this issue Dec 9, 2020 · 5 comments

Comments

@laulampaul
Copy link

when i run the codes , I face the problem.

File "train_video_rain.py", line 17, in
from networks.resample2d_package.modules.resample2d import Resample2d
File "/cache/sldnet_code/networks/init.py", line 1, in
from .FlowNet2 import *
File "/cache/sldnet_code/networks/FlowNet2.py", line 8, in
from networks.resample2d_package.modules.resample2d import Resample2d
File "/cache/sldnet_code/networks/resample2d_package/modules/resample2d.py", line 3, in
from ..functions.resample2d import Resample2dFunction
File "/cache/sldnet_code/networks/resample2d_package/functions/resample2d.py", line 3, in
from .._ext import resample2d
File "/cache/sldnet_code/networks/resample2d_package/_ext/resample2d/init.py", line 3, in
from ._resample2d import lib as _lib, ffi as _ffi
ModuleNotFoundError: No module named 'networks.resample2d_package._ext.resample2d._resample2d'

It seems that the _resample2d.py is lost. Could you help me check these problem. Thank you.

@laulampaul
Copy link
Author

I have unziped the file networks.zip.

@AstorZy
Copy link

AstorZy commented Dec 16, 2020

I have unziped the file networks.zip.

I met the same problem with you. Have you solved it now?There is a make.sh under the resample2d_package folder ,I wonder if we should compile this file,but i failed when I tried to compile it.

@zfy-csu
Copy link

zfy-csu commented Jan 2, 2021

When I run make.sh under the resample2d_package folder, some errors occurred. I tried to add some command lines like "
export CUDA_PATH=/usr/local/cuda/
export CXXFLAGS="-std=c++11"
export CFLAGS="-std=c99"
export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}
export CPATH=/usr/local/cuda-9.0/include${CPATH:+:${CPATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}", but it didn't work.

The errors are :
Resample2d_kernel.cu(230): error: pointer to incomplete class type is not allowed
Resample2d_kernel.cu(230): error: pointer to incomplete class type is not allowed
64 errors detected in the compilation of "/tmp/tmpxft_00002526_00000000-6_Resample2d_kernel.cpp1.ii".
gcc: error: /home/zfy/文档/PythonFiles/CVPR-2020-Self-Rain-Removal-master/SLDNet_code/networks/resample2d_package/src/Resample2d_kernel.o: 没有那个文件或目录
Traceback (most recent call last):
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/distutils/unixccompiler.py", line 197, in link
self.spawn(linker + ld_args)
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/site-packages/cffi/ffiplatform.py", line 51, in _build
dist.run_command('build_ext')
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension
target_lang=language)
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/distutils/unixccompiler.py", line 199, in link
raise LinkError(msg)
distutils.errors.LinkError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "build.py", line 31, in
ffi.build()
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 189, in build
_build_extension(ffi, cffi_wrapper_name, target_dir, verbose)
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 111, in _build_extension
outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname)
File "/home/zfy/anaconda3/envs/deep-image-prior/lib/python3.6/site-packages/cffi/api.py", line 727, in compile

@flyywh
Copy link
Owner

flyywh commented Apr 11, 2021

Please check the current version.
If it still does not work, you might consider recompiling the related packages via:
sh networks\channelnorm_package\make.sh
sh networks\correlation_package\make.sh
sh networks\resample2d_package\make.sh

@moonboy12138
Copy link

I also have a problem in resample2d_package,
_resampled.so:undefined symbol:state;
can someone solve this problem?

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

5 participants