Deprecated: Creation of dynamic property Timber\Site::$pingback is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Site.php on line 180

Deprecated: Creation of dynamic property Timber\User::$name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/User.php on line 118

Deprecated: Creation of dynamic property Timber\Post::$has_disclaimer is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_edit_lock is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_edit_last is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_thumbnail_id is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_meta_box_present is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_send_notification is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_modify_title_and_content is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_notification_custom_heading is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$onesignal_notification_custom_content is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$tipologia is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_tipologia is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$attributi is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_attributi is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$in_evidenza_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_in_evidenza_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$inviato_in_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_inviato_in_newsletter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$fonte is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_fonte is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$fonte_url is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_fonte_url is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_category is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_blz_affiliation_attributes is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_content_type is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_attributes is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_primary_speciali is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_focuskw is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_metadesc is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_linkdex is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_content_score is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_focuskeywords is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_keywordsynonyms is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_estimated-reading-time-minutes is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_wordproof_timestamp is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$response_body is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_indexnow_last_ping is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_oembed_592afc7a62894e8243aeebad712fd95b is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_oembed_time_592afc7a62894e8243aeebad712fd95b is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_date_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$ping_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_password is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$to_ping is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$pinged is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_content_filtered is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$guid is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$menu_order is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_mime_type is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_count is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$filter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71
Depth Pro: il modello Apple che rivoluziona la percezione della profondità

Depth Pro: il modello Apple che rivoluziona la percezione della profondità

Il nuovo modello Depth Pro sviluppato dal team di ricerca AI di Apple rivoluziona la visione computerizzata, generando mappe di profondità 3D da immagini 2D in 0,3 secondi senza necessitare di metadati. Utilizzando tecniche di apprendimento zero-shot, il modello è altamente versatile e pronto per applicazioni di realtà aumentata e guida autonoma.

Il team di ricerca AI di Apple ha sviluppato un nuovo modello che potrebbe rivoluzionare il modo in cui le macchine percepiscono la profondità nel caso delle immagini. Si tratta di un approccio tutto nuovo alla visione computerizzata che ha il potenziale di trasformare campi applicativi che spaziano dalla realtà aumentata alla guida autonomi. Il sistema appena presentato dagli ingegneri della Mela si chiama Depth Pro, ed è in grado di generare mappe di profondità 3D dettagliate a partire da singole immagini 2D in una frazione di secondo (0,3 secondi circa) servendosi di una normale GPU e senza fare affidamento sui dati della fotocamera tradizionalmente necessari per effettuare tali previsioni.

Cosa s’intende per profondità monoculare

Nel campo della visione computerizzata, la profondità monoculare si riferisce alla stima della distanza tra la fotocamera e gli oggetti in una scena tridimensionale utilizzando solo una singola immagine (monoculare), cioè senza informazioni di profondità provenienti da fonti aggiuntive come immagini stereoscopiche (coppie di immagini prodotte da due fotocamere), LiDAR o altri sensori di profondità.

La sfida nella stima della profondità monoculare deriva dal fatto che un’immagine bidimensionale non contiene, in modo esplicito, informazioni sulla profondità. Pertanto, il modello deve “inferire” la distanza basandosi su “indizi visivi” come i seguenti:

  • Dimensioni note degli oggetti: Se l’algoritmo riconosce un oggetto, può stimare la sua distanza in base alla dimensione apparente.
  • Prospettiva: L’effetto della prospettiva può essere usato per capire come gli oggetti si riducono man mano che si allontanano.
  • Sfocatura (depth of field): Oggetti più vicini o più lontani dal punto di messa a fuoco sono spesso meno nitidi.
  • Ombre e illuminazione: Possono fornire indizi sulla geometria e sulla distanza degli oggetti.

La stima della profondità monoculare è importante perché è alla base di applicazioni come la guida autonoma, la realtà aumentata e la generazione di modelli 3D a partire da immagini bidimensionali.

Cos’è Apple Depth Pro e come funziona

Come spiegano gli autori dello studio prodotto nei laboratori di Apple AI, Depth Pro non richiede più immagini o metadati come le lunghezze focali per valutare accuratamente la profondità. È invece capace di generare mappe di profondità ad alta risoluzione in soli 0,3 secondi su una GPU standard.

Il modello può creare mappe da 2,25 Megapixel con una precisione eccezionale, catturando anche dettagli minuti come i peli di un animale (si pensi alle stesse vibrisse del gatto) e alla vegetazione, spesso trascurati avvalendosi di altri metodi.

L’architettura su cui poggia Depth Pro consente al modello di elaborare sia il contesto generale di un’immagine che i suoi dettagli più fini, rappresentando un enorme balzo in avanti rispetto ai modelli più lenti e meno precisi che lo hanno preceduto.

Riconoscimento profondità visione 3D con Apple Depth Pro

Apprendimento zero-shot

Depth Pro non richiede un’ampia formazione su dataset specifici per fare previsioni accurate. Il cosiddetto apprendimento zero-shot rende il modello altamente versatile, applicabile a una vasta gamma di immagini, senza la necessità di dati specifici della fotocamera di solito richiesti nei modelli di stima della profondità.

Questa flessibilità apre di fatto un mondo di possibilità, migliorando le esperienze di realtà aumentata e migliorando la capacità dei veicoli autonomi di rilevare e muoversi tra gli ostacoli.

Depth Pro: open source e pronto per l’integrazione nei progetti reali

Con una mossa che potrebbe accelerare l’adozione di Depth Pro, Apple ha reso open source il suo modello. Il codice, insieme con i pesi del modello pre-addestrato, è disponibile su GitHub, consentendo a sviluppatori e ricercatori di sperimentare e affinare ulteriormente la tecnologia.

Il repository include l’architettura del modello e i checkpoint pre-addestrati, rendendo più facile per gli altri sviluppatori costruire nuovi progetti a partire dal lavoro di Apple. Quello reso pubblico su GitHub è comunque una “versione di riferimento” opportunamente ri-addestrata, mantenendone le prestazioni vicine a quelle riportate nel documento originale, sebbene non siano identiche.

Per iniziare a utilizzare Depth Pro, Apple consiglia di configurare un ambiente virtuale con miniconda, per poi scaricare i checkpoint pre-addestrati:

conda create -n depth-pro -y python=3.9
conda activate depth-pro
pip install -e .
source get_pretrained_models.sh

Depth Pro può essere eseguito sia da riga di comando che da script Python. Per eseguire una previsione su un’immagine singola dalla riga di comando, basta ricorrere alla seguente istruzione (sostituendo ovviamente il nome del file ove necessario):

depth-pro-run -i ./data/example.jpg

La combinazione di velocità, accuratezza metrica e la capacità di generare previsioni dettagliate senza dipendere da metadati specifici, rende Depth Pro un modello rivoluzionario nel panorama delle tecnologie di visione artificiale.

Credit immagine in apertura: iStock.com – peshkov

Ti consigliamo anche

Link copiato negli appunti