![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
A dashboard to inspect deep neural network models, providing interactive view on the layer and unit weights and gradients, as well as activation maps.
Current version is targeted at the image classification. However, coming version will target more diverse tasks.
This project is for learning and teaching purpose, do not try to display a network with hundreds of layers.
Install with PIP
$ pip install dnnviewer
Run dnnviewer
with one of the examples below, or with you own model (see below for capabilities and limitations)
Access the web application at http://127.0.0.1:8050
Currently accepted input formats are Keras Sequential models written to file in Checkpoint format or HDF5. A series of checkpoints along training epochs is also accepted as exemplified below.
Some test models are provided in the GIT repository _dnnviewer-data_
to clone from Github or download a zip from the repository page, a full description of the models and their design is available in the repository readme.
$ git clone https://github.com/tonio73/dnnviewer-data.git
Test data is provided by Keras.
Launch the application with command line --model-directories
that set a comma separated list of directory paths where the models are located
$ dnnviewer --model-directories dnnviewer-data/models,dnnviewer-data/models/FashionMNIST_checkpoints
Then select the network model and the corresponding test data (optional) on the user interface
Models containing the '{epoch}' tag are sequences over epochs. They are detected based on the pattern set by
command line option --sequence-pattern
whose default is {model}_{epoch}
Keras models are loaded from Tensorflow Checkpoint or HDF5 format with option --model-keras <file>
$ dnnviewer --model-keras dnnviewer-data/models/CIFAR-10_CNN5-Reg.tf --test-dataset cifar-10
$ dnnviewer --model-keras dnnviewer-data/models/MNIST_LeNet60.h5 --test-dataset mnist
Series of models along training epochs are loaded using the argument --sequence-keras <path>
and the pattern {model}_{epoch}
within the provided path. See below on how to generate these checkpoints.
$ dnnviewer --sequence-keras "dnnviewer-data/models/FashionMNIST_checkpoints/model1_{epoch}" --test-dataset fashion-mnist
Note: Only Sequential models are currently supported.
Use the save()
method of keras.models.Model class the output file format is either Tensorflow Checkpoint or HDF5 based on the extension.
model1.save('models/MNIST_LeNet60.h5')
The Keras standard callback tensorflow.keras.callbacks.ModelCheckpoint
is saving the model every epoch or a defined period of epochs:
from tensorflow import keras
from tensorflow.keras.callbacks import ModelCheckpoint
model1 = keras.models.Sequential()
#...
callbacks = [
ModelCheckpoint(
filepath='checkpoints_cnn-mnistfashion/model1_{epoch}',
save_best_only=False,
verbose=1)
]
hist1 = model1.fit(train_images, train_labels,
epochs=nEpochs, validation_split=0.2, batch_size=batch_size,
verbose=0, callbacks=callbacks)
See developer.md
FAQs
Deep Neural Network inspection: view weights, gradients and activations
We found that dnnviewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.