Global-Flow-Local-Attention icon indicating copy to clipboard operation
Global-Flow-Local-Attention copied to clipboard

No module named 'block_extractor_cuda'

Open sanazsab opened this issue 3 years ago • 5 comments

How could I solve the problem with

from models.networks.block_extractor.block_extractor import BlockExtractor

File "/Midgard/home/sanazsab/virtual-tryon/dressing-in-order/models/networks/block_extractor/block_extractor.py", line 3, in import block_extractor_cuda ModuleNotFoundError: No module named 'block_extractor_cuda'

This is the exact program I run for setup.py, but the below error pops up.

error: command '/Midgard/home/sanazsab/miniconda3/envs/DIO/bin/x86_64-conda-linux-gnu-cc' failed with exit status 1.

sanazsab avatar Oct 22 '21 10:10 sanazsab

How to solve, bro

yyyqwq avatar Dec 07 '22 05:12 yyyqwq

I was able to solve this by changing line 8 of ./model/networks/block_extractorsetup.py to cxx_args = ['-std=c++14']. Similarly for the setup.py scripts of "local_attn_reshape" and "resample2d_package".

johannakarras avatar May 28 '23 14:05 johannakarras

I encountered the same error, changing to c++14 does not solve the problem. Do you have other solutions, please image

itouchzh avatar Jun 26 '23 07:06 itouchzh

i meet the problem as well

Cauthygaussian avatar Feb 26 '24 03:02 Cauthygaussian