Skip to content

L19.ipynb version issues in colab #76

@SpencerGreene

Description

@SpencerGreene
# !pip install keras=='2.3.1'
# !pip install tensorflow=='2.2.0'
!pip install keras=='2.13.1'
!pip install tensorflow=='2.13.0'

Also later in reading the images, for me anyway the directory includes an additional file .config along with the jpegs, which causes the load to break. I fixed it with this:

daisies = []
rawfilenames = os.listdir('.')
files = [fn for fn in rawfilenames if re.match('.*\.jp(e?)g', fn)]

and in the long section below mkdir images:

# from keras.layers.advanced_activations import LeakyReLU
# from keras.layers.convolutional import UpSampling2D, Conv2D
from keras.layers import LeakyReLU
from keras.layers import UpSampling2D, Conv2D

# from tensorflow.keras.optimizers import Adam
from tensorflow.keras.optimizers import legacy

        # optimizer = Adam(0.0002, 0.5)
        optimizer = legacy.Adam(0.0002, 0.5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions