tfm.vision.factory_3d.build_model
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Builds backbone from a config.
tfm.vision.factory_3d.build_model(
    model_type: str,
    input_specs: tf.keras.layers.InputSpec,
    model_config: tfm.hyperparams.Config,
    num_classes: int,
    l2_regularizer: tf.keras.regularizers.Regularizer = None
) -> tf.keras.Model
Args | 
model_type
 | 
string name of model type. It should be consistent with
ModelConfig.model_type.
 | 
input_specs
 | 
tf.keras.layers.InputSpec.
 | 
model_config
 | 
a OneOfConfig. Model config.
 | 
num_classes
 | 
number of classes.
 | 
l2_regularizer
 | 
tf.keras.regularizers.Regularizer instance. Default to None.
 | 
Returns | 
| 
tf.keras.Model instance of the backbone.
 | 
  
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
  Last updated 2024-02-02 UTC.
  
  
  
    
      [null,null,["Last updated 2024-02-02 UTC."],[],[]]