-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ModuleNotFoundError: No module named 'resample2d_cuda' #30
Comments
This looks like a wrong pytorch version problem. Do you know which version you have installed? |
Having the same issue. Tried pytorch 0.4.1 and 0.4.0. |
Go to the folder: and run the commands: in that order, fixed it for me. |
I wanted it to work (without this error message or a separate install) for multiple users on an NFS share with users cloning the internal git repo. After running the installers, I copied the ".egg" folders into a directory in NFS (modules/flownet2_pytorch is a symbolic link in the repo): At run time, I use the following:
|
I installed flownet2 again and my problem was solved! |
thanks, it works well |
I followed your instructions and did the same. But the error is as follows: |
maybe you forget to run the commands: |
Hi @shaldor0315 , I got the following issue despite running
Any thoughts? |
I followed all possible steps above but still get the error below:
I have the following installed: Anyone able to solve it ? |
what files will create after successfully running setup.py build and install? fatal error C1021: invalid preprocessor command 'warning' how can I fix it? |
I have the same problem. How did you solve it? |
|
Hi,
I faced an issue, 'ModuleNotFoundError: No module named 'resample2d_cuda'.
Do you know how to solve this?
'resample2d_package' folder contains as below.
D:\download\vid2vid\models\flownet2_pytorch\networks\resample2d_package
pycache
init.py
resample2d.py
resample2d_cuda.cc
resample2d_kernel.cu
resample2d_kernel.cuh
setup.py
Following is the cmd command.
D:\download\vid2vid>python test.py --name label2city_2048 --dataroot datasets/Cityscapes/test_A --loadSize 2048 --n_scales_spatial 3 --use_instance --fg --use_single_G
------------ Options -------------
aspect_ratio: 1.0
batchSize: 1
checkpoints_dir: ./checkpoints
dataroot: datasets/Cityscapes/test_A
dataset_mode: temporal
debug: False
display_id: 0
display_winsize: 512
feat_num: 3
fg: True
fg_labels: [26]
fineSize: 512
gpu_ids: [0]
how_many: 300
input_nc: 3
isTrain: False
label_feat: False
label_nc: 35
loadSize: 2048
load_features: False
load_pretrain:
max_dataset_size: inf
model: vid2vid
nThreads: 2
n_blocks: 9
n_blocks_local: 3
n_downsample_E: 3
n_downsample_G: 3
n_frames_G: 3
n_gpus_gen: 1
n_local_enhancers: 1
n_scales_spatial: 3
name: label2city_2048
ndf: 64
nef: 32
netE: simple
netG: composite
ngf: 128
no_first_img: False
no_flip: False
norm: batch
ntest: inf
output_nc: 3
phase: test
resize_or_crop: scaleWidth
results_dir: ./results/
serial_batches: False
tf_log: False
use_instance: True
use_real_img: False
use_single_G: True
which_epoch: latest
-------------- End ----------------
CustomDatasetDataLoader
dataset [TestDataset] was created
vid2vid
Traceback (most recent call last):
File "test.py", line 24, in
model = create_model(opt)
File "D:\download\vid2vid\models\models.py", line 7, in create_model
from .vid2vid_model_G import Vid2VidModelG
File "D:\download\vid2vid\models\vid2vid_model_G.py", line 13, in
from . import networks
File "D:\download\vid2vid\models\networks.py", line 12, in
from .flownet2_pytorch.networks.resample2d_package.resample2d import Resample2d
File "D:\download\vid2vid\models\flownet2_pytorch\networks\resample2d_package\resample2d.py", line 3, in
import resample2d_cuda
ModuleNotFoundError: No module named 'resample2d_cuda'
The text was updated successfully, but these errors were encountered: