@@ -693,9 +693,11 @@ export const YOLO26N_POSE = {
693693// Style transfer
694694/**
695695 * Builds the four `(backend, precision)` URLs for a single style-transfer
696- * style. `display` is the HF repo suffix (e.g. `rain-princess`) and `slug` is
697- * the .pte filename token (e.g. `rain_princess`); they differ for styles
698- * whose names contain spaces.
696+ * style.
697+ *
698+ * @param display - HF repo suffix (e.g. `rain-princess`).
699+ * @param slug - .pte filename token (e.g. `rain_princess`). Differs from
700+ * `display` for styles whose names contain spaces.
699701 */
700702export function styleTransferUrls <
701703 const Display extends string ,
@@ -710,24 +712,43 @@ export function styleTransferUrls<
710712}
711713const STYLE_TRANSFER_CANDY_URLS = styleTransferUrls ( 'candy' , 'candy' ) ;
712714const STYLE_TRANSFER_MOSAIC_URLS = styleTransferUrls ( 'mosaic' , 'mosaic' ) ;
713- const STYLE_TRANSFER_RAIN_PRINCESS_URLS = styleTransferUrls ( 'rain-princess' , 'rain_princess' ) ;
715+ const STYLE_TRANSFER_RAIN_PRINCESS_URLS = styleTransferUrls (
716+ 'rain-princess' ,
717+ 'rain_princess'
718+ ) ;
714719const STYLE_TRANSFER_UDNIE_URLS = styleTransferUrls ( 'udnie' , 'udnie' ) ;
715720const STYLE_TRANSFER_CANDY_MODEL =
716- Platform . OS === `ios` ? STYLE_TRANSFER_CANDY_URLS . coremlBase : STYLE_TRANSFER_CANDY_URLS . xnnpackBase ;
721+ Platform . OS === `ios`
722+ ? STYLE_TRANSFER_CANDY_URLS . coremlBase
723+ : STYLE_TRANSFER_CANDY_URLS . xnnpackBase ;
717724const STYLE_TRANSFER_CANDY_QUANTIZED_MODEL =
718- Platform . OS === `ios` ? STYLE_TRANSFER_CANDY_URLS . coremlQuant : STYLE_TRANSFER_CANDY_URLS . xnnpackQuant ;
725+ Platform . OS === `ios`
726+ ? STYLE_TRANSFER_CANDY_URLS . coremlQuant
727+ : STYLE_TRANSFER_CANDY_URLS . xnnpackQuant ;
719728const STYLE_TRANSFER_MOSAIC_MODEL =
720- Platform . OS === `ios` ? STYLE_TRANSFER_MOSAIC_URLS . coremlBase : STYLE_TRANSFER_MOSAIC_URLS . xnnpackBase ;
729+ Platform . OS === `ios`
730+ ? STYLE_TRANSFER_MOSAIC_URLS . coremlBase
731+ : STYLE_TRANSFER_MOSAIC_URLS . xnnpackBase ;
721732const STYLE_TRANSFER_MOSAIC_QUANTIZED_MODEL =
722- Platform . OS === `ios` ? STYLE_TRANSFER_MOSAIC_URLS . coremlQuant : STYLE_TRANSFER_MOSAIC_URLS . xnnpackQuant ;
733+ Platform . OS === `ios`
734+ ? STYLE_TRANSFER_MOSAIC_URLS . coremlQuant
735+ : STYLE_TRANSFER_MOSAIC_URLS . xnnpackQuant ;
723736const STYLE_TRANSFER_RAIN_PRINCESS_MODEL =
724- Platform . OS === `ios` ? STYLE_TRANSFER_RAIN_PRINCESS_URLS . coremlBase : STYLE_TRANSFER_RAIN_PRINCESS_URLS . xnnpackBase ;
737+ Platform . OS === `ios`
738+ ? STYLE_TRANSFER_RAIN_PRINCESS_URLS . coremlBase
739+ : STYLE_TRANSFER_RAIN_PRINCESS_URLS . xnnpackBase ;
725740const STYLE_TRANSFER_RAIN_PRINCESS_QUANTIZED_MODEL =
726- Platform . OS === `ios` ? STYLE_TRANSFER_RAIN_PRINCESS_URLS . coremlQuant : STYLE_TRANSFER_RAIN_PRINCESS_URLS . xnnpackQuant ;
741+ Platform . OS === `ios`
742+ ? STYLE_TRANSFER_RAIN_PRINCESS_URLS . coremlQuant
743+ : STYLE_TRANSFER_RAIN_PRINCESS_URLS . xnnpackQuant ;
727744const STYLE_TRANSFER_UDNIE_MODEL =
728- Platform . OS === `ios` ? STYLE_TRANSFER_UDNIE_URLS . coremlBase : STYLE_TRANSFER_UDNIE_URLS . xnnpackBase ;
745+ Platform . OS === `ios`
746+ ? STYLE_TRANSFER_UDNIE_URLS . coremlBase
747+ : STYLE_TRANSFER_UDNIE_URLS . xnnpackBase ;
729748const STYLE_TRANSFER_UDNIE_QUANTIZED_MODEL =
730- Platform . OS === `ios` ? STYLE_TRANSFER_UDNIE_URLS . coremlQuant : STYLE_TRANSFER_UDNIE_URLS . xnnpackQuant ;
749+ Platform . OS === `ios`
750+ ? STYLE_TRANSFER_UDNIE_URLS . coremlQuant
751+ : STYLE_TRANSFER_UDNIE_URLS . xnnpackQuant ;
731752
732753/**
733754 * @category Models - Style Transfer
@@ -1037,9 +1058,13 @@ export const FASTSAM_S_COREML_FP16_MODEL = `${URL_PREFIX}-fast-sam/${VERSION_TAG
10371058export const FASTSAM_X_XNNPACK_FP32_MODEL = `${ URL_PREFIX } -fast-sam/${ VERSION_TAG } /x/xnnpack/fast_sam_x_xnnpack_fp32.pte` ;
10381059export const FASTSAM_X_COREML_FP16_MODEL = `${ URL_PREFIX } -fast-sam/${ VERSION_TAG } /x/coreml/fast_sam_x_coreml_fp16.pte` ;
10391060const FASTSAM_S_SEG_MODEL =
1040- Platform . OS === 'ios' ? FASTSAM_S_COREML_FP16_MODEL : FASTSAM_S_XNNPACK_FP32_MODEL ;
1061+ Platform . OS === 'ios'
1062+ ? FASTSAM_S_COREML_FP16_MODEL
1063+ : FASTSAM_S_XNNPACK_FP32_MODEL ;
10411064const FASTSAM_X_SEG_MODEL =
1042- Platform . OS === 'ios' ? FASTSAM_X_COREML_FP16_MODEL : FASTSAM_X_XNNPACK_FP32_MODEL ;
1065+ Platform . OS === 'ios'
1066+ ? FASTSAM_X_COREML_FP16_MODEL
1067+ : FASTSAM_X_XNNPACK_FP32_MODEL ;
10431068
10441069/**
10451070 * @category Models - Instance Segmentation
0 commit comments