Skip to content

Commit

Permalink
upper limit tensorflow 2.13 (other in new PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
haverland committed Dec 22, 2024
1 parent e597a1d commit 17ae76c
Show file tree
Hide file tree
Showing 7 changed files with 173 additions and 417 deletions.
3 changes: 1 addition & 2 deletions b2n/data/tmnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import numpy as np
import pandas as pd
from sklearn.utils import shuffle
from tensorflow import keras
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tf.keras.preprocessing.image import ImageDataGenerator


def tmnist_percentals(input_dir="datasets", max_count=28 ):
Expand Down
2 changes: 1 addition & 1 deletion b2n/data/ziffer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import shutil
from PIL import Image
from tensorflow import keras
#from tensorflow import keras
import numpy as np


Expand Down
2 changes: 0 additions & 2 deletions b2n/encodings/class_encoding.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import tensorflow.keras as keras
import math
import numpy as np

def class_encoding(y_train, nb_classes):
Expand Down
3 changes: 1 addition & 2 deletions b2n/plotfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import pandas as pd
from b2n.encodings.class_encoding import class_decoding
import tensorflow as tf
from PIL import Image
import os


def plot_dataset(images, labels, columns=10, rows=5, figsize=(18, 10)):

Expand Down
572 changes: 166 additions & 406 deletions dig-class100-s2.ipynb

Large diffs are not rendered by default.

Binary file not shown.
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ lxml_html_clean
scipy
scikit-learn
pandas
tensorflow>=2.12.1; sys_platform != 'darwin'
tensorflow-macos>=2.12.1; sys_platform == 'darwin'
tensorflow-metal==0.8; sys_platform == 'darwin'
tensorflow-model-optimization
tensorflow>=2.13.0, < 2.14.0; sys_platform != 'darwin'
tensorflow-macos>=2.13.0, < 2.14.0; sys_platform == 'darwin'
#tensorflow-metal==0.8; sys_platform == 'darwin'
#tensorflow-model-optimization
opencv-python
notebook
jupyter

0 comments on commit 17ae76c

Please sign in to comment.