Categories
Misc

CIFAR10 Models

I’m looking for a model that does well on CIFAR10. Most of the ones I have found overfit way too much. Any suggestions to some architectures? No transfer learning, I need to train them myself for research. I would appreciate any references as well.

submitted by /u/kaca541
[visit reddit] [comments]

Categories
Misc

Help with updating old code to new api

Help with updating old code to new api

I’m trying to run a Jupyter notebook from this repository: https://github.com/artemyk/ibsgd. Specifically the MNIST_SaveActivations.ipynb file. Problem is the code is from two years ago, and The file was written in tensorflow 2.1.0. The notebook runs fine until the last cell, where I get the following error (see pictures below).

Error

loggingreporter.py file where the error occurs

How inputs variable is used in loggingreporter.py

I’ve been looking online but I can’t figure out how to fix this attribute error for the version of TensorFlow I’m running (2.8.0). Any guidance is appreciated! I’ve already tried downgrading to 2.1.0 but have not had success. I’m using the latest version of python3

submitted by /u/mtot10
[visit reddit] [comments]

Categories
Misc

Loss does decrease but accuracy doesnt increase

Loss does decrease but accuracy doesnt increase

Hi,

i am trying to develop an image recognition app and i already had greate results with a 2 category dataset but the moment i add a third category the accuracy wont increase. Can anybody help me with that?

from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten
from tensorflow.keras.layers import Conv2D, MaxPooling2D
from tensorflow.keras.callbacks import TensorBoard
import pickle
import time
import numpy as np
pickle_in = open(“X.pickle”,”rb”)
X = pickle.load(pickle_in)
pickle_in = open(“Y.pickle”,”rb”)
Y = pickle.load(pickle_in)
X = X/255.0
Y = np.array(Y)
#parameters-parameters-parameters-parameters-parameters-parameters-parameters-parameters-parameters-parameters-parameters-parameters
dense_layers = [0, 1, 2, 3]
layer_sizes = [32, 64, 128]
conv_layers = [1, 2, 3]
epochs = 10
batch_size = 32
validation_split = 0.3
PROJEKT_NAME=”3″
#parameters-parameters-parameters-parameters-parameters-parameters-parameters-parameters-parameters-parameters-parameters-parameters

for dense_layer in dense_layers:
for layer_size in layer_sizes:
for conv_layer in conv_layers:

NAME = f”CONV{conv_layer}_size{layer_size}_dense{dense_layer}_{time.time()}”
print(NAME)
model = Sequential()
model.add(Conv2D(layer_size, (3, 3), input_shape=X.shape[1:]))
model.add(Activation(‘relu’))
model.add(MaxPooling2D(pool_size=(2, 2)))
for l in range(conv_layer-1):
model.add(Conv2D(layer_size, (3, 3)))
model.add(Activation(‘relu’))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Flatten())
for _ in range(dense_layer):
model.add(Dense(layer_size))
model.add(Activation(‘relu’))
model.add(Dense(1))
model.add(Activation(‘sigmoid’))
tensorboard = TensorBoard(log_dir=f”logs/{PROJEKT_NAME}/{NAME}”)
model.compile(loss=’binary_crossentropy’,
optimizer=’adam’,
metrics=[‘accuracy’],
)
model.fit(X, Y,
batch_size=batch_size,
epochs=epochs,
validation_split=validation_split,
callbacks=[tensorboard])

epoch_loss

epoch_accuracy

submitted by /u/Mo_187_
[visit reddit] [comments]

Categories
Misc

By Land, Sea and Space: How 5 Startups Are Using AI to Help Save the Planet

Different parts of the globe are experiencing distinct climate challenges — severe drought, dangerous flooding, reduced biodiversity or dense air pollution. The challenges are so great that no country can solve them on their own. But innovative startups worldwide are lighting the way, demonstrating how these daunting challenges can be better understood and addressed with Read article >

The post By Land, Sea and Space: How 5 Startups Are Using AI to Help Save the Planet appeared first on NVIDIA Blog.

Categories
Misc

9+ Best Books to Learn Tensorflow in 2022 for beginners & Advanced

9+ Best Books to Learn Tensorflow in 2022 for beginners & Advanced submitted by /u/maneesh123456
[visit reddit] [comments]
Categories
Misc

Opportunistic Decision support system for transferring TinyML models from MCU to Phone -Bachelors thesis

Hi everyone, I’ve come up with a research solution for my Bachelors Thesis that provides MCUs an intelligent decision support system to transfer TinyML models from MCU to a smartphone for network based implementations (federated learning). I would appreciate it if you could spare a few minutes to read the document describing the specifics of my project (why and how I came up with the solution) and later fill out a form with a few questions that get your thoughts on the project.

Thank you in advance 🙂

submitted by /u/dieselVeasel
[visit reddit] [comments]

Categories
Misc

My network was outputting the same value for every input, so I added BatchNormalization() as the final layer in the model and now it actually changes its output. I feel like I should not do this, but I don’t know why. Anyone know if this is ok?

Adding batch norm to the layer before doesn’t help.

“`python model = Sequential()

# inputs: A 3D tensor with shape [batch, timesteps, feature]. # https://keras.io/api/layers/recurrent_layers/lstm/ dropout = 0.1 recurrent_dropout = 0 # 0 for cudnn model.add(LSTM(25, input_shape=(x_shape[1:]), activation='tanh', return_sequences = True, dropout=dropout, recurrent_dropout=recurrent_dropout)) #model.add(BatchNormalization()) # (A) model.add(LSTM(15, activation='tanh', return_sequences = False, dropout=dropout, recurrent_dropout=recurrent_dropout)) #model.add(BatchNormalization()) # (B) model.add(Dense(10, activation='gelu')) model.add(BatchNormalization()) # (C) #model.add(Dropout(0.1)) model.add(Dense(1, activation='sigmoid')) #model.add(BatchNormalization()) # (D) loss = tf.keras.losses.MeanAbsoluteError() model.compile(loss = loss, metrics=["accuracy",tf.keras.metrics.MeanAbsoluteError()], optimizer=tf.keras.optimizers.Adam())#lr=LEARN_RATE_LSTM, decay=LEARN_RATE_LSTM_DECAY return model 

“`

submitted by /u/Abradolf–Lincler
[visit reddit] [comments]

Categories
Misc

(Cifar10) Loss continues but validation flat at 66%. Overfit?? More epochs?

(Cifar10) Loss continues but validation flat at 66%. Overfit?? More epochs? submitted by /u/BlakeYerian
[visit reddit] [comments]
Categories
Misc

Tooth Tech: AI Takes Bite Out of Dental Slide Misses by Assisting Doctors

Your next trip to the dentist might offer a taste of AI. Pearl, a West Hollywood startup, provides AI for dental images to assist in diagnosis. It landed FDA clearance last month, the first to get such a go-ahead for dentistry AI. The approval paves the way for its use in clinics across the United Read article >

The post Tooth Tech: AI Takes Bite Out of Dental Slide Misses by Assisting Doctors appeared first on NVIDIA Blog.

Categories
Misc

GFN Thursday Is Fit for the Gods: ‘God of War’ Arrives on GeForce NOW

The gods must be smiling this GFN Thursday — God of War today joins the GeForce NOW library. Sony Interactive Entertainment and Santa Monica Studios’ masterpiece is available to stream from GeForce NOW servers, across nearly all devices and at up to 1440p and 120 frames per second for RTX 3080 members. Get ready to Read article >

The post GFN Thursday Is Fit for the Gods: ‘God of War’ Arrives on GeForce NOW appeared first on NVIDIA Blog.