<?xml version="1.0" encoding="utf-8"?>
<!--
update history
[date]  [version]  [update description]

2025.03.20 update xxx
2025.03.15 init
-->
<nice_magic name="TeleCamera" pd="PD2609" version="3.0.8.7">
	<scenes>
		<!-- scene type="1" name="bird" config="bird.xml">
		scene properties:
			- type[int]: 唯一类型标识，必须与代码内部定义一致；1-鸟 2-动物 3-花 4-zoom 5-deblur
			- name[str]: 场景名，可以自定义
			- config[str]: 场景处理xml，相对与本xml路径

		scene子项：
			- condition： 代表一个条件，多个condition直接是”且“的关系
			- any_of：   代表一组”或“关系条件，内部多个condition仍然保持”且“的关系

		condition属性：
			- type       [int  ]: 条件类型，对应与检测、分割、分类、matting等[0,5]
			- id         [int  ]: 需要保留的类别id
			- roi_w_range[float]: roi宽度比例范围, 格式a:b, a,b in [0,1) 默认[0,1)
			- roi_h_range[float]: roi高度比例范围, 格式a:b, a,b in [0,1) 默认[0,1)
			- area_range [float]: roi面积比例范围, 格式a:b, a,b in [0,1) 默认[0,1)
				type  			 	  0				1				 2	              3		      4	       5      6
				类型  			 强制为true   general-class   opensetbin-class  openset-class  matting    seg   detect
				id				  	  *             *                *                *           *        *      *
				roi_w_range                                          *                *           *        *      *
				roi_h_range                                          *                *           *        *      *
				area_range                                           *                *	          *        *      *
		</scene -->
		<scene type="8" name="zoom_portait" config="zoom_portait_imx06h.xml">
			<any_of>
				<condition type="mod-portrait" sum_area="0.001:1"/>
				<condition type="spe-cls-opensetbin" id="13" conf="0.8"/>
			</any_of>
		</scene>

		<!-- <scene type="1" name="bird" config="bird.xml"> -->
			<!-- <any_of> -->
				<!-- <condition type="mod-cls-bf" id="2"/> -->
				<!-- <condition type="spe-cls-opensetbin" id="0"/> -->
			<!-- </any_of> -->
		<!-- </scene> -->

		<!-- <scene type="3" name="flower" config="flower.xml"> -->
			<!-- <any_of> -->
				<!-- <condition type="mod-cls-bf" id="1"/> -->
				<!-- <condition type="spe-cls-opensetbin" id="5"/> -->
			<!-- </any_of> -->
		<!-- </scene> -->
		
		<scene type="4" name="zoom" config="zoom_imx06h.xml" ui_range="0.59:10">
			<any_of>
				<condition type="landmoon" id="1"/>
				<condition type="mod-face-num" thresh="0.1"/>
			</any_of>
		</scene>

		<scene type="4" name="zoom" config="zoom_imx06h.xml" ui_range="10:1000">
			<any_of>
				<condition type="landmoon" id="1"/>
				<condition type="spe-cls-general" non_id="11,13,14" scene="10,39,40,41,42"/>
			</any_of>
		</scene>

		<scene type="10" name="zoom_sharp" config="zoom_sharp.xml">
			<condition type="spe-cls-general" non_id="11,13,14"/>
		</scene>

		<!-- <scene type="5" name="deblur" config="deblur.xml"> -->
			<!-- <condition type="const-true"/> -->
		<!-- </scene> -->

		<scene type="7" name="stage_demoire" config="stage_demoire_imx06h.xml">
			<condition type="spe-moire"/>
		</scene>

		<scene type="6" name="stage_sr" config="stage_sr_imx06h.xml">
			<any_of>
				<condition type="mod-face-num" thresh="0.1"/>
				<condition type="iqa-face-ratio" thresh="0.0041" conf="0.001"/>
			</any_of>
		</scene>		
		
		<scene type="15" name="cloud" config="cloud.xml">
			<condition type="const-true"/>
		</scene>
		<scene type="13" name="stage_filming_demoire" config="stage_filming_demoire_imx06h.xml">
			<condition type="spe-moire"/>
		</scene>
	</scenes>

	<models>
		<model name="wide_vit" sd="0" in="-1:1" out="-1:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_scenery_wide_sr</tag>
			<ion_mem_size>56623104</ion_mem_size>
			<session_num>1</session_num>
		</model>
		<model name="main_vit" sd="0" in="-1:1" out="-1:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_scenery_main_sr</tag>
			<ion_mem_size>56623104</ion_mem_size>
			<session_num>1</session_num>
		</model>
		<model name="tele_vit" sd="0" in="-1:1" out="-1:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_scenery_tele_sr</tag>
			<ion_mem_size>56623104</ion_mem_size>
			<session_num>1</session_num>
		</model>
		<model name="base_sd16c_10x_imx06h" sd="1" in="0:1" out="0:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_base_sd16c_10x_imx06h</tag>
			<ion_mem_size>136314880</ion_mem_size>
			<session_num>2</session_num>
			<decoder_scaling_factor>1.0</decoder_scaling_factor>
			<alpha_prod_t>0.7537</alpha_prod_t>
		</model> 
		
		<model name="base_sd16c_20x_imx06h" sd="1" in="0:1" out="0:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_base_sd16c_20x_imx06h</tag>
			<ion_mem_size>175112192</ion_mem_size>
			<session_num>2</session_num>
			<sharedBin>nice_magic_sd16c_270m_unet_parallel_share</sharedBin>
			<decoder_scaling_factor>1.0</decoder_scaling_factor>
			<alpha_prod_t>0.7537</alpha_prod_t>
		</model> 

		<model name="base_sd16c_30x_imx06h" sd="1" in="0:1" out="0:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_base_sd16c_30x_imx06h</tag>
			<ion_mem_size>175112192</ion_mem_size>
			<sharedBin>nice_magic_sd16c_450m_unet_parallel_share</sharedBin>
			<decoder_scaling_factor>1.0</decoder_scaling_factor>
			<alpha_prod_t>0.7537</alpha_prod_t>
		</model> 

		<model name="base_sd16c_60x_imx06h" sd="1" in="0:1" out="0:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_base_sd16c_60x_imx06h</tag>
			<ion_mem_size>175112192</ion_mem_size>
			<sharedBin>nice_magic_sd16c_450m_unet_parallel_share</sharedBin>
			<decoder_scaling_factor>1.0</decoder_scaling_factor>
			<alpha_prod_t>0.7537</alpha_prod_t>
		</model> 

		<model name="sharp_vit" sd="0" in="-1:1" out="-1:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_sharp_vit</tag>
			<ion_mem_size>56623104</ion_mem_size>
			<session_num>2</session_num>
			<out_scale>2.25</out_scale>
		</model>
		<model name="zoom_sr" sd="0" in="0:1" out="0:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_zoom_sr</tag>
			<ion_mem_size>0</ion_mem_size>
			<session_num>2</session_num>
			<out_scale>2.25</out_scale>
		</model>
		<model name="stage_sr" sd="0" in="-1:1" out="-1:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_stage_sr</tag>
			<ion_mem_size>56623104</ion_mem_size>
			<session_num>2</session_num>
		</model>
		<model name="stage_demoire" sd="0" in="-1:1" out="-1:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_stage_demoire</tag>
			<ion_mem_size>56623104</ion_mem_size>
			<session_num>2</session_num>
		</model>
		<model name="coe2.0" sd="0" in="-1:1" out="-1:1">
			<infer_type>7</infer_type>
			<tag>nice_magic_coe2.0</tag>
			<ion_mem_size>56623104</ion_mem_size>
			<session_num>2</session_num>
		</model>
	</models>

	<decision_cond>
		<laser_len_thr>1000</laser_len_thr>
	</decision_cond>
	
	<SDKConfig>
		<outSetModel>0</outSetModel>
		<postResizeEnable>0</postResizeEnable>
		<maxWidthThr>6000</maxWidthThr>
		<maxHeightThr>4500</maxHeightThr>
	</SDKConfig>

	<npuprop>
		<up_thr>100</up_thr>
		<low_thr>50</low_thr>
		<galley_switch>0</galley_switch>
	</npuprop>
	
	<spe>
		<min_version>2.0.1.1</min_version>
		<max_version>3.0.0.0</max_version>
		<config_path>/vendor/camera3rd/nti/nice_magic_tmp</config_path>
	</spe>
	
	<pllm>
		<faceDetType>3</faceDetType>
		<config_path>/vendor/camera3rd/nti/power/pllm_config.xml</config_path>
	</pllm>

	<vdnn>
		<min_version>2.0.0.0</min_version>
		<max_version>3.0.0.0</max_version>
	</vdnn>

	<debug>
		<roiLabel>0</roiLabel>
	</debug>

</nice_magic>
