GithubHelp home page GithubHelp logo

Comments (7)

Tramac avatar Tramac commented on July 30, 2024

Hi, if you run this scrip on the terminal directly, please add code before from utils import download, makedirs:

import sys
cur_path = os.path.abspath(os.path.dirname(__file__))
root_path = os.path.split(cur_path)[0]
sys.path.append(root_path)

Or you can run this script in the IDE (for example PyCharm) directly without adding anything.

from awesome-semantic-segmentation-pytorch.

casiahnu avatar casiahnu commented on July 30, 2024

thanks for your solution. When I run "python eval.py --model fcn32s --backbone vgg16 --dataset pascal_voc" on the terminal, I got "error argument --model invalid choice: 'fcn32s'(choose from fcn32s/fcn16s/fan8s/fan/psp/deeplabv3/danet/denseaspp/bisnet) ". I have no idea about that. What should I do? Thank you

from awesome-semantic-segmentation-pytorch.

Tramac avatar Tramac commented on July 30, 2024

Hi, please change code choices=["fcn32s/fcn16s/fan8s/fan/psp/deeplabv3/danet/denseaspp/bisnet"] to choices=["fcn32s", "fcn16s", "fcn8s", "psp", "deeplabv3", "danet", "denseaspp", "bisenet", "encnet", "dunet", "icnet"].
This bug has been fixed in new version, please see there.

from awesome-semantic-segmentation-pytorch.

SuperWWF avatar SuperWWF commented on July 30, 2024

Hi. I want to run the train.py, but in /core/nn/sync_bn/functions.py, line15, can't import lib, How can I fix it?
Thank you.

from awesome-semantic-segmentation-pytorch.

Tramac avatar Tramac commented on July 30, 2024

Hi,please try to change from core.nn.sync_bn import lib to from . import lib.

from awesome-semantic-segmentation-pytorch.

SuperWWF avatar SuperWWF commented on July 30, 2024

Hi,please try to change from core.nn.sync_bn import lib to from . import lib
Thank you su much, it's working now, And I find a type mistake in train.py, dataset argument,between 'ade20k', and 'citys' should have a ','.

from awesome-semantic-segmentation-pytorch.

Tramac avatar Tramac commented on July 30, 2024

Thank you very much! I will fix it as soon as possible.

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.