跳到主要內容

AI 驅動文件

您想了解什麼?

快照與變更日誌

引數快照

每個已釋出的版本都會儲存一個引數快照:程式和測試集引數按照固定的、有版本的架構進行捕獲,因此一個版本包含其內部的完整結構化內容。每個版本還有一個 README 檔案,以可讀形式呈現該快照。

一個版本包含兩個快照檔案:

  • parameters/recipe/<version>.json — 程式快照
  • parameters/testset/<version>.json — 測試集快照

兩者都帶有一個 schema_version,用於描述該檔案的結構(當前為 1.1)。欄位使用下述點路徑表示;[] 表示列表,因此 blocks[].type_config.labels[].name 表示每個模型中每個標籤的 name

程式快照

parameters/recipe/<version>.json

欄位型別含義
schema_versionstring此檔案的架構結構版本。
extracted_atstring快照生成時間。
recipe_namestring程式名稱。
descriptionstring | null程式描述。
plc_recipe_idinteger | nullPLC 程式 ID。
meta_versioninteger程式後設資料版本。
database_versioninteger程式資料庫版本。
software_versionstring程式軟體版本。
imaging.preview_image.shastring預覽影象的 SHA。
imaging.preview_image.pathstring預覽影象的路徑。
imaging.exposureinteger | null曝光時間。
imaging.gainnumber | null感測器增益。
imaging.brightnessinteger | null亮度。
imaging.gammainteger | null伽瑪值。
imaging.focal_lengthnumber | null焦距。
imaging.focusnumber | null對焦。
imaging.focus_distancenumber | null對焦距離。
imaging.rotation_modeinteger | null影象旋轉模式。
imaging.acq_modeinteger | null採集模式。
imaging.hdr_mode_enabledboolean | nullHDR 模式開/關。
imaging.led_modeinteger | nullLED 照明模式。
imaging.led_gaininteger | nullLED 增益。
imaging.led_strobe_modeboolean | nullLED 頻閃開/關。
imaging.lens_correctboolean | null鏡頭畸變校正開/關。
imaging.photometric_enabledboolean | null光度校正開/關。
imaging.photometric_modeinteger | null光度模式。
imaging.awb_redinteger | null自動白平衡紅色通道。
imaging.awb_greeninteger | null自動白平衡綠色通道。
imaging.awb_blueinteger | null自動白平衡藍色通道。
imaging.awb_opboolean | null自動白平衡啟用狀態。
imaging.calibration_pixels_per_unitnumber | null校準比例(每單位畫素數)。
imaging.calibration_unitstring | null校準單位。
imaging.trigger_debounceinteger | null觸發去抖動。
imaging.trigger_delayinteger | null觸發延遲。
imaging.rawobject完整未解析的影象源。
blocks[].block_typestring模型型別(alignmentclassificationsegmentationmeasurementocrunsupervised)。
blocks[].uuidstring穩定的模型標識。
blocks[].namestring模型名稱。
blocks[].statusstring模型狀態。
blocks[].is_enabledboolean模型是否執行。
blocks[].has_modelboolean是否附加了已訓練的模型。
blocks[].search_area.search_area_idinteger | null搜尋區域 ID。
blocks[].search_area.search_area_bboxlist of number | null搜尋區域邊界框。
blocks[].search_area.roi_regions[].bboxlist of numberROI 邊界框。
blocks[].search_area.roi_regions[].anglenumberROI 旋轉角度。
blocks[].type_configobject特定型別配置(見下文)。
blocks[].model_ref.shastring已訓練模型檔案的 SHA。
blocks[].model_ref.pathstring已訓練模型檔案的路徑。
blocks[].model_ref.file_extensionstring已訓練模型檔案的副檔名。
aligner_reference_image.shastring對齊參考影象 SHA。
aligner_reference_image.pathstring對齊參考影象路徑。
aligner_reference_image.full_repo_pathstring對齊參考影象在倉庫內的路徑。
node_red_flow.basic_modeboolean流程是否處於基本模式。
node_red_flow.basic_flow_idstring | null基本模式流程 ID。
node_red_flow.basic_flow_metadataobject | null基本模式流程後設資料。
node_red_flow.nodes[].idstring節點 ID。
node_red_flow.nodes[].node_typestring節點型別。
node_red_flow.nodes[].namestring節點名稱。
node_red_flow.nodes[].xinteger | null節點畫布 X 位置。
node_red_flow.nodes[].yinteger | null節點畫布 Y 位置。
node_red_flow.nodes[].wireslist of list of string輸出連線(每個輸出對應的目標節點 ID)。
node_red_flow.nodes[].funcstring | null函式節點程式碼。
node_red_flow.nodes[].rawobject完整未解析的節點源。

模型配置

blocks[].type_config 下的欄位取決於 blocks[].block_type

欄位型別含義
blocks[].type_config.angle_tolerance_leftnumber | null對齊 — 左角度容差。
blocks[].type_config.angle_tolerance_rightnumber | null對齊 — 右角度容差。
blocks[].type_config.confidence_score_thresholdnumber | null對齊 / 分割 / 無監督 — 匹配/置信度閾值。
blocks[].type_config.sensitivitynumber | null對齊 / 無監督 — 靈敏度。
blocks[].type_config.versioninteger | null對齊 — 配置版本。
blocks[].type_config.scale_invariantboolean | null對齊 — 尺度不變匹配開/關。
blocks[].type_config.inference_modestring | null對齊 — 推理模式。
blocks[].type_config.dl_performance_modeinteger | null對齊 — 深度學習效能模式。
blocks[].type_config.skip_blockboolean | null對齊 — 跳過此模型。
blocks[].type_config.template_image_id_pathstring | null對齊 — 模板影象引用路徑。
blocks[].type_config.labels[].namestring分類 — 標籤名稱。
blocks[].type_config.labels[].confidence_thresholdnumber | null分類 — 每個標籤的置信度閾值。
blocks[].type_config.labels[].is_positiveboolean | null分類 — 該標籤是否計為透過。
blocks[].type_config.labels[].inspection_typeinteger | null分類 — 檢測型別。
blocks[].type_config.labels[].colorstring | null分類 — 顯示顏色。
blocks[].type_config.segmentation_typestring | null分割 — 分割型別。
blocks[].type_config.classes[].class_namestring分割 — 類別名稱。
blocks[].type_config.classes[].mask_pixel_valueinteger | null分割 — 掩膜畫素值。
blocks[].type_config.classes[].colorstring | null分割 — 顯示顏色。
blocks[].type_config.classes[].mask_shastring | null分割 — 掩膜檔案 SHA。
blocks[].type_config.classes[].mask_pathstring | null分割 — 掩膜檔案路徑。
blocks[].type_config.measurement_regions[]object測量 — 測量區域。
blocks[].type_config.min_text_areainteger | nullocr — 最小文字區域。
blocks[].type_config.text_segmentation_thresholdnumber | nullocr — 文字分割閾值。
blocks[].type_config.unclip_rationumber | nullocr — unclip 比率。
blocks[].type_config.unclip_ceilingnumber | nullocr — unclip 上限。
blocks[].type_config.unsupervised_typestring | null無監督 — 方法型別。
blocks[].type_config.epochsinteger | null無監督 — 訓練輪數。
blocks[].type_config.encoderstring | null無監督 — 編碼器。
blocks[].type_config.learning_ratenumber | null無監督 — 學習率。
blocks[].type_config.downsampling_rationumber | null無監督 — 下采樣比率。
blocks[].type_config.tiled_modeboolean | null無監督 — 平鋪模式開/關。
blocks[].type_config.min_blob_areanumber | null無監督 — 最小 blob 面積。
blocks[].type_config.max_blob_areanumber | null無監督 — 最大 blob 面積。
blocks[].type_config.hyperparametersobject分類 / 分割 / 測量 / ocr / 無監督 — 訓練超引數。

測試集快照

parameters/testset/<version>.json

欄位型別含義
schema_versionstring該檔案的 Schema 形態版本。
extracted_atstring快照生成時間。
namestring測試集名稱。
descriptionstring | null測試集描述。
authorstring | null測試集作者。
image_countinteger影象數量。
images_with_ground_truthinteger具有真實標籤的影象數量。
search_area_ids[]string測試集引用的搜尋區域 ID。
per_class_distribution[].class_namestring類別名稱。保留欄位;當前始終為空(視為"分佈不可用")。
per_class_distribution[].countinteger該類別的影象數量。保留欄位;當前始終為空。
images[].image_idstring影象 ID。
images[].ground_truth_fingerprintstring | null影象真實標籤的指紋。
images[].has_ground_truthboolean影象是否具有真實標籤。

README

每個版本還帶有已提交的 README.md,以可讀形式呈現快照。其章節包括:

  • Imaging Settings — 影象引數的表格。
  • Aligner Reference Image — 對齊參考影象及其 SHA-256(僅當程式中包含該影象時)。
  • Inspection Blocks — 每個模型一個子章節,標題為 <name> (<block type>),包含該模型的 UUID、狀態和啟用標誌,隨後是特定型別的部分 — Classification LabelsSegmentation ClassesOCR ParametersUnsupervised ParametersAlignment Parameters,或測量區域數量。
  • Node-RED Flow — 基本模式標誌、節點數量以及節點表格(ID、型別、名稱)。
  • Test Set — 名稱、描述、作者、影象數量、具有真實標籤的影象數量以及搜尋區域。

更新日誌

釋出某個版本時,會將其引數快照與上一版本的快照進行比較,以生成更新日誌。該比較是結構化的 — 按上述 schema 逐欄位比較,其中列表(模型、標籤、類別、Node-RED 節點)透過穩定的標識而非位置進行匹配,因此重新排序不會顯示為變更。程式和測試集分別獨立比較,更新日誌根據已提交的快照按需生成,因此可用於任意兩個版本之間的比較。

變更按與快照相同的章節分組,某個章節只有在其中發生變化時才會出現。無差異的版本會被相應標記,而第一個版本則顯示完整的初始資訊,而非差異對比。