Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Jan 8, 2024
1 parent 9e5ecf6 commit 56a41e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/vision/bit.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"""

import os

os.environ["KERAS_BACKEND"] = "tensorflow"
import numpy as np
import pandas as pd
Expand Down Expand Up @@ -120,6 +121,7 @@
random_flip = keras.layers.RandomFlip("horizontal")
random_crop = keras.layers.RandomCrop(CROP_TO, CROP_TO)


def preprocess_train(image, label):
image = random_flip(image)
image = ops.image.resize(image, (RESIZE_TO, RESIZE_TO))
Expand Down

0 comments on commit 56a41e7

Please sign in to comment.