GithubHelp home page GithubHelp logo

Comments (10)

Yuxiang1995 avatar Yuxiang1995 commented on July 30, 2024

I follow this issue zhanghang1989/PyTorch-Encoding#127 (comment) and upgrade the torch-encoding ,but it doesn't work

from awesome-semantic-segmentation-pytorch.

dekura avatar dekura commented on July 30, 2024

I follow this issue zhanghang1989/PyTorch-Encoding#127 (comment) and upgrade the torch-encoding ,but it doesn't work

@kernel-Peanut i meet this problem too. Have you find how to solve it? Thank you so much.

from awesome-semantic-segmentation-pytorch.

dekura avatar dekura commented on July 30, 2024

Hi, @kernel-Peanut @Tramac
I solved this problem by changing the files in /core/nn/sync_bn/lib/gpu

first

change the syncbn_kernel.cu as follow

before

#include <vector>
#include <torch/extension.h>
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>

after

#include <vector>
#include <torch/serialize/tensor.h>
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>

second

and do follow the issue here.

Summary

this error may be caused by the rapid update of pytorch.
i forked this program and you can refer to my code here .

from awesome-semantic-segmentation-pytorch.

Tramac avatar Tramac commented on July 30, 2024

Good job, thank you very much!

from awesome-semantic-segmentation-pytorch.

Yuxiang1995 avatar Yuxiang1995 commented on July 30, 2024

@dekura It doesn't work for me .
I change #include <torch/extension.h> to #include <torch/serialize/tensor.h> and rename the torch/torch.h to torch/extension.h , but it doesn't work.

from awesome-semantic-segmentation-pytorch.

dekura avatar dekura commented on July 30, 2024

@kernel-Peanut you con refer to my code here and see which torch.h should be changed and which should not.
or you can just change the core/nn/sync_bn/lib/gpu folder with mine~
Have a try~

from awesome-semantic-segmentation-pytorch.

dekura avatar dekura commented on July 30, 2024

@kernel-Peanut i tried again and i found that you must delete all the codes about LeakyRelu_Backward and LeakyRelu_Forward in core/nn/sync_bn/lib/gpu

from awesome-semantic-segmentation-pytorch.

Yuxiang1995 avatar Yuxiang1995 commented on July 30, 2024

@dekura
Hey! The bug disappear after following your method. Thanks a lot!

from awesome-semantic-segmentation-pytorch.

Yuxiang1995 avatar Yuxiang1995 commented on July 30, 2024

@Tramac
I think this issue can be closed.

from awesome-semantic-segmentation-pytorch.

Tramac avatar Tramac commented on July 30, 2024

@kernel-Peanut @dekura
Hi, the bug undefined symbol: _Z23LeakyRelu_Backward_CUDAN2at6TensorES0_f in syncbn has been fixed with no remove leakyrelu.
Thank you for your job!

from awesome-semantic-segmentation-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.