Coder Social home page Coder Social logo

Comments (14)

faysal-ishtiaq avatar faysal-ishtiaq commented on July 20, 2024 2

@hiteshnitetc https://github.com/faysal-ishtiaq/image-segmentation-keras-py3 here is a python 3 version of this repo

from image-segmentation-keras.

RaphaelChevasson avatar RaphaelChevasson commented on July 20, 2024 2

Alternatively, in the __init__.py of the Module folder, prefix imported modules by Module. (note the dot).
Then if you want to make it run with python 3.6, remplace:
print ... by print(...)
expect ..., ... by expect ... as ...
zipped.next() by next(zipped)

from image-segmentation-keras.

bruce25796 avatar bruce25796 commented on July 20, 2024 1

in the init.py,
write

import Models.VGGUnet
import Models.VGGSegnet
import Models.FCN8
import Models.FCN32

from image-segmentation-keras.

divamgupta avatar divamgupta commented on July 20, 2024

This should not happen. Please let me know your python version. Did you by mistake delete VGGUnet.py from the Models folder?

from image-segmentation-keras.

hiteshnitetc avatar hiteshnitetc commented on July 20, 2024

Python 3.6.1. I am also attaching screen shot.
screenshot from 2017-11-27 11-27-33

My init.py file containts only 4 lines

import VGGUnet
import VGGSegnet
import FCN8
import FCN32

Is this ok?

from image-segmentation-keras.

divamgupta avatar divamgupta commented on July 20, 2024

We have tested this project only on python 2.7 . Python 3.x is not supported.

from image-segmentation-keras.

hiteshnitetc avatar hiteshnitetc commented on July 20, 2024

ok. Thnx for information. Can you please help, what changes i have to make, to make compatible your given program for python 3.6

from image-segmentation-keras.

faysal-ishtiaq avatar faysal-ishtiaq commented on July 20, 2024

@hiteshnitetc I ran into same problem. Did you solve it?

from image-segmentation-keras.

hiteshnitetc avatar hiteshnitetc commented on July 20, 2024

Python 3.x is not supported

from image-segmentation-keras.

hiteshnitetc avatar hiteshnitetc commented on July 20, 2024

from image-segmentation-keras.

flafferriere avatar flafferriere commented on July 20, 2024

Did it work for you ? I still got an error AttributeError: module 'Models' has no attribute 'VGGSegnet'

from image-segmentation-keras.

koshyviv avatar koshyviv commented on July 20, 2024

For a quick fix, you can copy all the *.py files except the __init__.py from \..\Models to \..\
That worked for me.

from image-segmentation-keras.

divamgupta avatar divamgupta commented on July 20, 2024

Image segmentation keras has been updated with python3 support. The new version should fix the issue.

from image-segmentation-keras.

acseckin avatar acseckin commented on July 20, 2024

Hi, I had same error

os: windows 10
python: 3.7.10
keras version: '2.4.3'
tensorflow version: '2.4.1'

model = keras_segmentation.models.unet.vgg(n_classes=6 , input_height=256, input_width=256 )

AttributeError: module 'keras_segmentation' has no attribute 'models'

from image-segmentation-keras.

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.