Giter Club home page Giter Club logo

Comments (13)

wuhuikai avatar wuhuikai commented on June 12, 2024 1
  1. Modify this line to se_loss = args.se_loss, norm_layer = torch.nn.BatchNorm2d,
  2. Modify this line to loss = self.criterion(*outputs, target)
  3. Remove this line
  4. Modify this line to nn.BatchNorm1d(ncodes),
  5. Reinstall FastFCN
pip uninstall fast_fcn
PATH=.:$PATH
python setup.py install

Screenshot from 2019-04-16 16-07-01

from fastfcn.

alphaccw avatar alphaccw commented on June 12, 2024

model = get_segmentation_model()
define norm_layer to be torch.nn.BatchNorm2d solve my problem.

from fastfcn.

10183308 avatar 10183308 commented on June 12, 2024

@alphaccw i have change the norm_layer ,but it also occur the problem. like below:
AttributeError: 'NoneType' object has no attribute 'run_slave'
1
Could you help me ?
thank you very much

from fastfcn.

alphaccw avatar alphaccw commented on June 12, 2024

@10183308
by this changing, i can successfully run psp and deeplab models, enc seems still have some problem, i didnot go into it yet.
BTW, i remember i need to set as 'norm_layer=torch.nn.BatchNorm2d', the full name...i canot accesss to the machine now, so i cant check at the moment

from fastfcn.

abhimanyuchadha96 avatar abhimanyuchadha96 commented on June 12, 2024

Still doesn't work

from fastfcn.

wuhuikai avatar wuhuikai commented on June 12, 2024

Please give the error message in detail.

from fastfcn.

SangerY avatar SangerY commented on June 12, 2024

first, I have this problem, #10 when train
I modified four places you mentioned, and then run in docker,use single gpu

CUDA_VISIBLE_DEVICES=0 python train.py --dataset pcontext \
    --model encnet --jpu --aux --se-loss \
    --backbone resnet50 --checkname encnet_res50_pcontext \
    --batch-size 1

get
1565141350(1)
then I add --workers 1
still error
1565141849(1)

from fastfcn.

wuhuikai avatar wuhuikai commented on June 12, 2024

5. Remove DataParallelModel from this line.
6. Remove DataParallelCriterion from this line.
7. Undo 2: Modify this line to loss = self.criterion(outputs, target)

from fastfcn.

SangerY avatar SangerY commented on June 12, 2024

still the same error.
my environment,python3.7, pytorch1.0.1, cuda 9.0, cudnn 7.4.2, GTX1080,using docker
is there anything wrong with my environment?
I can run test, test_fps and predict scripts successfully.

from fastfcn.

wuhuikai avatar wuhuikai commented on June 12, 2024

Have you reinstalled the package after modifying the code?

from fastfcn.

SangerY avatar SangerY commented on June 12, 2024

No. which package need to be reinstalled?

from fastfcn.

wuhuikai avatar wuhuikai commented on June 12, 2024
pip uninstall fast_fcn
PATH=.:$PATH
python setup.py install

If you want to modify the code without reinstalling every time, then

pip uninstall fast_fcn
PATH=.:$PATH
python setup.py develop

Besides, I think step 5-7 is unnecessary, which can be skipped.

from fastfcn.

SangerY avatar SangerY commented on June 12, 2024

Step 5-7 is unnecessary.
Thank you very much.

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.