view

View a model’s graph in an interactive visualizer.

Additional Documentation

Usage

                                                                                                                                                                                                                                                                                               
 Usage: yzlite view [OPTIONS] <model>                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                               
 View an interactive graph of the given model in a webbrowser                                                                                                                                                                                                                                  
 This is based on the utility: https://netron.app                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                               
 For more details see:                                                                                                                                                                                                                                                                         
 https://github.com/ReRAM-Labs/yzlite/docs/guides/model_visualizer                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                               
 ----------                                                                                                                                                                                                                                                                                    
  Examples                                                                                                                                                                                                                                                                                     
 ----------                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                               
 # View pre-trained Keras model                                                                                                                                                                                                                                                                
 yzlite view image_example1                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                               
 # View pre-trained tflite model                                                                                                                                                                                                                                                               
 yzlite view image_example1 --tflite                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                               
 # View provided .tflite model file                                                                                                                                                                                                                                                            
 yzlite view ~/workspace/my_model.tflite                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                               
 # Generate the .tflite then view it                                                                                                                                                                                                                                                           
 # YZLITE model image_example1 need not be trained first                                                                                                                                                                                                                                         
 yzlite view image_example1 --tflite --build                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                               
 Arguments 
 *    model      <model>  One of the following:                 [default: None] [required]                                                                                                                                                                                                   
                          - Path to .tflite model file                                                                                                                                                                                                                                       
                          - Path to .h5 model file                                                                                                                                                                                                                                           
                          - Name of YZLITE model                                                                                                                                                                                                                                               
                          - Path to model's archive (.yzlite.zip)                                                                                                                                                                                                                              
                          - Path to YZLITE model's python script                                                                                                                                                                                                                               

 Options 
 --tflite                   View the .tflite model file in the YZLITE model's archive, or if the --build option is given, generate .tflite file before viewing                                                                                                                                 
 --build    -b              Build the  model rather than loading from a pre-trained file in the YZLITE model archive                                                                                                                                                                           
 --host     -h      <host>  Local interface to start HTTP server [default: None]                                                                                                                                                                                                             
 --port     -p      <port>  Listen port of HTTP server used to view graph [default: 8080]                                                                                                                                                                                                    
 --verbose  -v              Enable verbose console logs                                                                                                                                                                                                                                      
 --help                     Show this message and exit.