Skip to content

Commit

Permalink
configure keras model and add graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSarmiento04 committed Jan 8, 2024
1 parent 6a40e49 commit 3ab329f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

Welcome to the GitHub repository for our advanced neural network architecture designed to tackle the CIFAR-10 dataset! This repository contains all the necessary code, documentation, and resources to help you understand, implement, and train the neural network model effectively.
This repository contains all the necessary code, documentation, and resources to help you understand, implement, and train the neural network model effectively.

## Table of Contents
- [Introduction](#introduction)
Expand All @@ -23,20 +23,14 @@ The CIFAR-10 dataset is a well-known benchmark in the field of computer vision,

## Results

1. [Architecture 1](docs/arc_1.png)

![](docs/first_result.jpg)
[Complete graphics (Basic)](https://tensorboard.dev/experiment/82Hg4m0YQ1uMWkw69qSv6w/#scalars)
<p align="center">
<img src="docs/graph.svg" height ="300px">
</p>

[Complete graphics (Best)](https://tensorboard.dev/experiment/jhqlZ8dBRtOzxMm9o8wQcw/#scalars)


2. [Architecture using transfer learning](docs/model_plot3.png)

![Transfer learning result](./docs/transfer_learning_result.jpg)


[Complete Graphics (Transfer LEarning)](https://tensorboard.dev/experiment/o7f6pvAMT3KSpX88ge0h1Q/#scalars)
<p align="center">
<img src="docs/model_sgd.png" height ="300px">
</p>

> Note: The pre trainer model (use separate) tested are the follow
> - NASNetMobile
Expand Down Expand Up @@ -66,4 +60,8 @@ docker run -d --name cifar_10 -p8000:80 danielsarmiento04/cifar10:4

## License

This repository is licensed under the [Apache 2.0](LICENSE) License.
This repository is licensed under the [Apache 2.0](LICENSE) License.

## Reference

A. Bäuerle, C. van Onzenoodt and T. Ropinski, "Net2Vis – A Visual Grammar for Automatically Generating Publication-Tailored CNN Architecture Visualizations," in IEEE Transactions on Visualization and Computer Graphics, vol. 27, no. 6, pp. 2980-2991, 1 June 2021, doi: 10.1109/TVCG.2021.3057483.
2 changes: 1 addition & 1 deletion cifar10/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Model:

def __init__(self):

self.model = tf.keras.models.load_model('cifar.h5')
self.model = tf.keras.models.load_model('cifar.keras')
self.classes = CLASSES

def preprocess_image(self, img:np.ndarray):
Expand Down
Binary file renamed cifar.h5 → cifar_10.keras
Binary file not shown.
1 change: 1 addition & 0 deletions docs/graph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3ab329f

Please sign in to comment.