Giter Site home page Giter Site logo

core dumped issue about fastfcn HOT 11 CLOSED

wuhuikai avatar wuhuikai commented on July 23, 2024
core dumped issue

from fastfcn.

Comments (11)

wuhuikai avatar wuhuikai commented on July 23, 2024

I cannot figure it out without further details. Maybe try to run it again : )

from fastfcn.

danxuhk avatar danxuhk commented on July 23, 2024

the error comes at this line: x = self.pretrained.conv1(x) in the base.py
If I replace self.pretrained.conv1 with a normal self.conv, it passes. What do you think could be the issue?

from fastfcn.

wuhuikai avatar wuhuikai commented on July 23, 2024

Can you provide the details of your environment and base.py before and after modification?

from fastfcn.

danxuhk avatar danxuhk commented on July 23, 2024

I did not change any environment configuration and anything. I use Encnet with JPU and ResNet50. Just used the training sh script to change it...

from fastfcn.

danxuhk avatar danxuhk commented on July 23, 2024

My pytorch version is 1.2.0 and CUDA 9.0.

from fastfcn.

wuhuikai avatar wuhuikai commented on July 23, 2024

Please use PyTorch==1.0.x

from fastfcn.

danxuhk avatar danxuhk commented on July 23, 2024

I changed to Pytorch==1.0.0. The problem is still there. I did not change anything on the base.py...
When I change BatchNorm2d with torch.nn.BatchNorm2d, it passes. The issue is due to the batch norm layer. Any idea how could solve this?

from fastfcn.

wuhuikai avatar wuhuikai commented on July 23, 2024

Have you reinstalled encoding after changing to 1.0.0? If you did, then I think everything is the same as my environment :(
Ubuntu 16.04, Python 3.5, PyTorch 1.0.0, Cuda 9.0

from fastfcn.

danxuhk avatar danxuhk commented on July 23, 2024

I reinstalled encoding after changing to 1.0.0. It is a segmentation fault caused by using encoding.nn.BatchNorm2D.

from fastfcn.

wuhuikai avatar wuhuikai commented on July 23, 2024

I have no idea why there's a segmentation fault since you have the same configurations as mine :(
But for a reference, there's a solution in the original Encoding repo.

from fastfcn.

wuhuikai avatar wuhuikai commented on July 23, 2024

@danxuhk The code in branch latest is now ready, which uses official SyncBatchNorm and can run on all OS with PyTorch>=1.1.0.

from fastfcn.

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.