Giter Site home page Giter Site logo

Comments (7)

RichardSieg avatar RichardSieg commented on July 22, 2024 5

I also got the AttributeError: 'dict' object has no attribute 'has_key' Error. Fixed this by changing to

if layer.name in index:
                index[layer.name].set_weights(weights)

from keras-fcn.

SCP-173-cool avatar SCP-173-cool commented on July 22, 2024 3

U need run util/get_weights_path.py and transfer_FCN.py first

from keras-fcn.

Fansiee avatar Fansiee commented on July 22, 2024

Thank you very much!
I just find it right now!
Maybe there should be a simple tutorial for beginners~

from keras-fcn.

simonsayshi avatar simonsayshi commented on July 22, 2024

@SCP-173-cool hi, I ran the transfer_FCN but it returned an error:

File "C:/Users/simonsayshi/Desktop/python scripts/Keras-FCN-master/Keras-FCN-master/utils/transfer_FCN.py", line 144, in
if sys.argv[1] not in {'Vgg16', 'ResNet50'}:

IndexError: list index out of range

I've been struggling for a very long time but have no idea..any suggestion?

from keras-fcn.

RichardSieg avatar RichardSieg commented on July 22, 2024

Hi @simonsayshi . This means, that you have to specify a keyword argument, either Vgg16 or ResNet50. This means you have to run e.g.
python utils/transfer_FCN.py ResNet50

from keras-fcn.

leeivan1007 avatar leeivan1007 commented on July 22, 2024

@RichardSieg thx! it is can work for me

from keras-fcn.

gokberkyar avatar gokberkyar commented on July 22, 2024

U need run util/get_weights_path.py and transfer_FCN.py first

You save the day

from keras-fcn.

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.