T3adda direct lel contenu

Core ML w Metal: kifech apps el Mac y5addmou el IA 3al vidéo

Ektechif kifech Core ML, Metal w MPSGraph y5addmou l-IA 3al vidéo f-wa9t 7a9i9i 3la Mac Apple Silicon, mel interpolation lel HDR.

Bil mokhtasar

  • Core ML w Metal y5alliw apps el Mac y5addmou modèles deep learning direct 3la matériel Apple Silicon.
  • Mémoire unifiée mta3 Apple Silicon t5alli CPU w GPU ya9raw nafs image el vidéo men ghir copies mémoire moklfa.
  • MPSGraph y5addem réseaux de neurones m3a9din 3la GPU Apple f-a9al men milliseconde lel image.
  • Tachghil el IA f-local yadhmen confidentialité kamla b-zéro latence cloud w consommation énergie 9lila.
Fi hal saf7a
  1. Chnouma Core ML, Metal, w MPSGraph?
  2. Kifech Apple Silicon y9assem tâches el IA: CPU, GPU, w Neural Engine
  3. 3lech el mémoire unifiée t5alli el IA vidéo 3al Mac sri3a barcha
  4. Kifech logiciels el Mac ybadlou w y5addmou modèles IA?
  5. Zouz amthla 7a9i9iyin mta3 IA vidéo f-MacLC
  6. 3lech el IA 3al appareil mohemma lel confidentialité wel batterie
  7. Chnowa nestannew f-mosta9bel lecture el vidéo bel IA

Core ML w Metal houma el frameworks el asasiyin mta3 Apple elli y5alliw logiciels el Mac y5addmou modèles machine learning moudarbin direct 3la matériel Apple Silicon. B-isti3mal architecture el mémoire unifiée, el GPU b-débit 3ali, wel cœurs de calcul spécialisés, el frameworks hedhom y5alliw lecteurs el vidéo y5addmou tâches intelligence artificielle m3a9da — kima interpolation de mouvement en temps réel w tone mapping HDR neuronal — men ghir ma yeb3thou 7atta image lel cloud.

Win ken el traitement vidéo el 9dim ya3temed 3la algorithmes mathématiques thabtin, el outils el jdod yetwajhou akther l-réseaux de neurones 5faf. Sawa2 bech y9addrou vecteurs de mouvement f-mchahad m3a9da wella ywas3ou alwen SDR l-lma3an HDR, outils développeurs Apple y5alliw l-inférence vidéo en temps réel sri3a, sekta, w mo9tasda fel énergie.

Chnouma Core ML, Metal, w MPSGraph?

Bech tefhem kifech apps el Mac el jdod ytraitiw el vidéo bel intelligence artificielle, lezem tفرق bin el 3 taba9at mta3 stack machine learning Apple.

Core ML howa framework machine learning 3ali el mostawa mta3 Apple, awwel ma 5raj f-macOS 10.13 High Sierra. Ye5ou modèles deep learning moudarbin f-PyTorch wella TensorFlow w yoptimizihom l-matériel Apple. Core ML ye5dem k-coordinateur dhki: ki application t3addi image vidéo l-modèle Core ML, el framework wa7dou y9arrer anahou unité d’exécution matériel elli ta3ti asra3 w a9al consommation.

Metal howa API graphique w calcul bas-niveau mta3 Apple. El gamers ya3rfou Metal lel rendu 3D, ama ingénieurs el vidéo yesta3mlou Metal compute shaders lel calcul numérique parallèle. 5ater images el vidéo fihom malayin pixels indépendants, architecture parallèle mta3 el GPU mnesba barcha l-traitement el vidéo.

Bin ez-zouz taba9at hedhom fama Metal Performance Shaders Graph (MPSGraph). 5raj f-macOS 11 Big Sur, MPSGraph howa moteur algèbre linéaire w calcul tenseurs masnou3 5issisan lel GPU Apple. Y5alli développeurs yebniw, ycompiliw, w y5addmou graphes de calcul réseaux de neurones direct 3al processeur graphique. B-fusion des opérations f-kernels GPU, MPSGraph yna77i el goulots d’étranglement mémoire w ya3ti sor3a 3alya.

Animation

Inférence IA vidéo en temps réel 3la Apple Silicon

  1. Image DécodéeTexture Metal f-mémoire unifiée
  2. MPSGraph / Core MLCalcul graphe optimisé
  3. GPU AppleInférence parallèle haut débit
  4. Écran HDRSortie tone-mappée wella interpolée
Kifech applications vidéo el Mac ytraitiw les images b-Core ML w Metal MPSGraph

Kifech Apple Silicon y9assem tâches el IA: CPU, GPU, w Neural Engine

Processeurs Apple Silicon (M1 l-M4) ma ya3tamdouch 3la cœur wa7ed bech y5addmou modèles IA. F-blastou, Apple tdmej 3 architectures de calcul mo5talfa f-kol puce:

  1. El Processeur Central (CPU): Fih cœurs performance w efficacité, el CPU behi fel logique séquentielle, démuxage fichiers, w contrôle mémoire. B-framework Accelerate w instructions Apple Matrix Coprocessor (AMX), el CPU ynajem ya3mel 7sebet vectorielles, ama maouch optimisé l-convolutions neuronales th9al 3al pixels.
  2. El Processeur Graphique (GPU): El GPU Apple fih barcha unités d’exécution parallèles m3a débit mémoire youssel l-mi2at Go/s. L-traitement el vidéo en temps réel, el GPU ghalben howa el a7sen: images el vidéo mawjoudin déja fel mémoire graphique, donc réseaux de neurones ynajmou ybadlou el pixels men ghir ma ycopiw données 3al bus.
  3. El Neural Engine (ANE): El Neural Engine howa bloc ASIC m5asses lel opérations tenseurs deep learning. Behi barcha f-multiplications matricielles b-INT8 wella FP16 b-consommation 9lila. Ama ken ta3mel streaming l-60 wella 120 image 4K non compressée 3al Neural Engine, ynajem ysir retard synchronisation bin textures d’affichage w tenseurs el modèle.

El développeurs ynajmou y7adddou el exécution b-MLModelConfiguration.computeUnits. Application tnajem t9oul l-Core ML yesta3mel kol el unités, ya7ser el traitement fel CPU wel Neural Engine, wella y7added el GPU bech yo93od synchronisé m3a taux de rafraîchissement el écran.

3lech el mémoire unifiée t5alli el IA vidéo 3al Mac sri3a barcha

Fel PC-wet el 3adiyin, tachghil el IA 3la flux vidéo fih machakel débit. Image vidéo mdecodia mel CPU lezemha tetcopia 3al bus PCIe l-mémoire graphique (VRAM) bech el GPU y5addem shaders neuronaux. Ba3d, el image el mtraitia lezemha tarja3 tetcopia lel affichage. F-résolution 4K (3840 × 2160 pixels), image wa7da 10-bit tekhou ta9rib 33 Mo. Copie mta3 60 wella 120 image kol thanya 3al bus tekhou barcha débit w tsakhen el pc.

Apple Silicon yna77i el transfert hedha jemla b-Unified Memory Architecture (UMA). El CPU, GPU, Media Engine, wel Neural Engine lkol yecherkou nafs el mémoire rapide.

Ki lecteur vidéo ydécodi image HEVC b-Media Engine matériel, el buffer pixels yetekteb direct fel mémoire unifiée. El GPU ynajem wa9tha ya9ra nafs l-adresse mémoire k-tenseur d’entrée l-réseau MPSGraph, ytraiti el pixels f-blast-hom, w ya3redh el image 3al écran. Bima ennou zéro octets yetcopiw bin bus-et, latence el mémoire tebet l-9rib zéro wel consommation to93od 9lila.

Kifech logiciels el Mac ybadlou w y5addmou modèles IA?

Akthariyet ba7th el machine learning ysir f-Python b-PyTorch. 5ater tachghil environnement Python th9il da5el lecteur vidéo 5fif maouch efficace, développeurs yeteb3ou pipeline conversion standard b-outil open-source mta3 Apple, coremltools.

El conversion tchouf graphe modèle PyTorch, tna77i code el entraînement (kima backpropagation w dropout), w ttarjem el opérations l-primitives Core ML natives. Wa9t el conversion, el poids yetquantizaw mel 32-bit (FP32) lel 16-bit (FP16). 3la Apple Silicon, opérations FP16 temchi b-double sor3at FP32 m3a nafs el précision el basseriyya lel vidéo.

Ba3d ma yetbadel l-bundle .mlpackage, macOS ycompili el modèle l-code machine optimisé wa9t el build wella f-awwel 7allén. El graphe compilé yetrabaat direct m3a pipelines Apple Silicon l-a9sa sor3a.

Zouz amthla 7a9i9iyin mta3 IA vidéo f-MacLC

Bech tchouf kifech et-technologie hedhi te5dem fel wa9e3, chouf kifech lecteur MacLC open-source ytabba9 machine learning lel vidéo. F-blast modèles kbar w th9al, MacLC yesta3mel zouz pipelines mrakzin:

1. Interpolation d’images neuronale b-RIFE v4.25

El aflam yetta9tou b-24 images par seconde. Wa9telli 24 fps ya3ti flou de mouvement cinéma ma3rouf, el mouvements el sra3 ynajmou yodh-hrou yt9att3ou 3la écrans Mac ProMotion 120 Hz.

MacLC fih implémentation mta3 RIFE (Real-Time Intermediate Flow Estimation). B-Core ML, MacLC y5addem RIFE v4.25 bech ya9ra zouz images wra b3adhhom, ye7seb el flux optique, w yasna3 images fel west. Hedha y5alli aflam 24 fps yetinterpolaw l-60 fps wella 120 fps en temps réel. T3allem akther fel guide mte3na 3la l’interpolation de mouvement.

2. Expansion highlights SDR-to-HDR b-MPSGraph

Akthariyet el vidéos el 9dom masnou3in f-Standard Dynamic Range (SDR), l-écrans 9dom ye9fou f-100 nits. Écrans MacBook Pro el jdod w Apple Pro Display XDR ywaslou l-1,000 nits continus w 1,600 nits pic. Zyedet el lma3an linéaire tnajem t7ra9 el highlights w tbahet el alwen.

Bech y7ell el mochkel hedha, MacLC fih moteur expansion SDR to HDR. Lel niveaux el 3alyin (High w Maximum), MacLC ma yesta3melch formules statiques. F-blastou, y5addem réseau de neurones sghir direct 3al GPU Apple b-MPSGraph.

Moudarreb men Hazen Studio 3la tsawer HDR open-source men Poly Haven, el réseau hedha y7allel kol image w yetwa99a3 courbes expansion el highlights. 3la puce Apple M3 Max, el graphe GPU hedha ykammel el inférence f-0.45 milliseconde l-kol image 1080p f-High w 0.53 milliseconde f-Maximum. Bima ennou el inférence tekhou nosf milliseconde, el GPU yekfi b-zyeda fel budget 16.6 ms mta3 flux 60 fps.

3lech el IA 3al appareil mohemma lel confidentialité wel batterie

F-snin el a5ira, barcha outils upscaling w amélioration vidéo wallaw ye5dmou b-APIs cloud. El mosta3mel lezmou yuploadi el clips l-serveurs b3ad, yestanna d9aye9 wella sweye3, w y3awed ynazzel el fichier.

Lel tafarroj el yawmi, el cloud ma yemchich. Film mta3 sa3tin fih mi2at Go men données non compressées. Tab3ith hedha 3al internet ya3mel latence kbira, ykallef flous, w y3arradh vidéowat dar 5assa l-5atar confidentialité.

Tachghil el IA direct 3al Mac b-Core ML w Metal ya3ti 3 fawa2ed kbar:

  • Confidentialité Kamla: Vidéowatek ma yo5rjouch men stockage wella mémoire el Mac mte3ek. 7atta télémétrie wella images ma teteb3ath l-serveurs b3ad.
  • Istijaba Fawriya: 5ater el modèles ye5dmou en temps réel, ma famech pré-rendu wella export. T7ell el fichier, tenzil play, w testamta3 direct.
  • Consommation Énergie 9lila: Ki ykounou modèles neuronaux masnou3in l-shaders GPU Apple Silicon, el processeur yo93od bered. Pipeline MPSGraph mrigel yekhou 9ليل énergie w y7afedh 3al batterie.

Chnowa nestannew f-mosta9bel lecture el vidéo bel IA

Ma dam Apple Silicon yettawwer f-ajyel M-series el jeya, el accélération matérielle lel machine learning bech tzed tedmej fel pipelines média. El architectures el jeya twa33ed b-débit mémoire akbar, instructions matricielles f-cœurs GPU, w intégration a3ma9 m3a couches d’affichage.

Lel mosta3mel el 3adi, hedha ma3nah lecteurs el vidéo ynajmou ya3mlou 5edma kenet test7a9 serveurs post-production. Upscaling vidéo IA en temps réel 3al Mac, na9s artefacts dynamique, ta9wiyet el klem el dhakiya, w tone mapping dhkki bech ykamlou ybadlou fichiers 3adiyin l-experiences mriglin l-kol écran.

Ki yebniw 3la frameworks Apple natives kima Core ML, Metal, w MPSGraph, développeurs el Mac ynajmou y9addmou experiences basriya 3alya ye5dmou b-slasa, b-sket, w bel kamel 3al appareil.

As2ela yet3awdou

Feh yetsta3mel Core ML f-applications el vidéo?

Applications el vidéo yesta3mlou Core ML bech y5addmou réseaux de neurones moudarbin l-7ajet kima interpolation de fréquence d'images, upscaling super-résolution, na9s el bruit, w détection intelligente des scènes.

Chnowa el far9 bin Core ML w Metal Performance Shaders Graph?

Core ML howa framework 3ali el mostawa ycompili modèles machine learning bech ye5dmou 3al CPU, GPU, wel Neural Engine. Metal Performance Shaders Graph (MPSGraph) howa moteur de calcul spécialisé yebni w y5addem graphes de tenseurs sur mesure direct 3al GPU Apple.

Ya5i tachghil el IA 3al vidéo yferregh batteriet el MacBook fisa3?

Wa9telli el modèles ykounou optimisés l-shaders GPU Apple Silicon w 7sebet FP16 b-précision nosf, el inférence l-kol image tkammel f-ajza2 men milliseconde, w t7afedh 3al batterie mo9arana b-traitement CPU mouch optimisé.

El IA vidéo 3al appareil yest7a9 connexion internet?

Lé. Core ML w Metal ye5dmou bel kamel 3al matériel local da5el el Mac mte3ek. Tsawer el vidéo mte3ek ma yo5rjouch men pc-ek, elli yadhmen confidentialité kamla w zéro buffering réseau.

Before you download

MacLC is free. If it is useful to you, a gift helps it skip “Open Anyway” and funds the next release.