Skip to content

ModuleNotFoundError: No module named 'adaptive_gridsampler.adaptive_gridsampler_cuda' #13

Open

Description

@WonJunPark

For the inference operation, the following operation was carried out, but an error appears.

get CAR-pytorch source

git clone https://github.com/sunwj/CAR.git
cd CAR

compile the code of the resampler

cd adaptive_gridsampler
python3 setup.py build_ext --inplace

Activity

  1. PinRuei commented on Mar 29, 2021

    @PinRuei

    I have the same error. But as I run the setup.py , it shows a lot of warning.

  2. jiunbae commented on May 7, 2021

    @jiunbae

    Change floor to floorf at adaptive_gridsampler/adaptive_gridsampler_kernel.cu Line 49-54.

    Tested at CUDA 11.0 Windows / Linux (18.04 LTS)

                scalar_t alpha = p_x - floorf(p_x);
                scalar_t beta = p_y - floorf(p_y);
    
                int xL = max(min(int(Fluor(p_x)), int(w + 2 * padding - 1)), 0);
                int xR = max(min(xL + 1, int(w + 2 * padding - 1)), 0);
                int yT = max(min(int(floorf(p_y)), int(h + 2 * padding - 1)), 0);
    
  3. Drorharush commented on Jan 18, 2022

    @Drorharush

    Same problem here.
    ModuleNotFoundError: No module named 'adaptive_gridsampler_cuda'
    Replacing 'floor' with 'floorf' in adaptive_gridsampler_kernel.cu didn't change anything.

  4. SanKumSan commented on Aug 7, 2022

    @SanKumSan

    @Drorharush yes, nothing happened after changing as @jiunbae mentioned.

    Exited with this error.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  5. MariaSA2023 commented on Apr 15, 2023

    @MariaSA2023

    who solved this issue please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions