ExtractTensorFlowModelFromFile Task

This task opens a TensorFlow model given an input URI.

This task is part of ENVI Deep Learning, which requires a separate license and installation.

Example

Sample data files are available on our ENVI Tutorials web page. Click the "Deep Learning" link in the ENVI Tutorial Data section to download a .zip file containing the data. Extract the contents to a local directory. The file TrainedModelContainers.h5 is in the shipping_containers directory.

; Start the application

e = ENVI(/HEADLESS)

 

; Update the following line with the correct path

; to the tutorial data files

File = 'C:\MyTutorialFiles\TrainedModelContainers.h5'

 

; Get the task from the catalog of ENVITasks

Task = ENVITask('ExtractTensorFlowModelFromFile')

 

; Define inputs

Task.INPUT_URI = File

 

; Run the task

Task.Execute

 

Print, Task.OUTPUT_MODEL, /IMPLIED_PRINT

Syntax

Result = ENVITask('ExtractTensorFlowModelFromFile')

Input properties (Set, Get): INPUT_URI

Output properties (Get only): OUTPUT_MODEL

Properties marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Properties marked as "Get" are those whose values you can retrieve but not set.

Methods

This task inherits the following methods from ENVITask. See the ENVITask topic in ENVI Help.

Properties

This task inherits the following properties from ENVITask:

COMMUTE_ON_DOWNSAMPLE

COMMUTE_ON_SUBSET

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

See the ENVITask topic in ENVI Help for details.

This task also contains the following properties:

INPUT_URI (required)

Specify the mask-based ENVITensorFlowModel to be updated. The model can be new or previously trained.

OUTPUT_MODEL

This is the ENVITensorFlowModel extracted from the URI.

Version History

Deep Learning 1.0

Introduced

See Also

ENVITensorFlowModel, TrainTensorFlowMaskModel Task, TensorFlowMaskClassification Task