<?php /** * The header for our theme * * This is the template that displays all of the <head> section and everything up until <div id="content"> * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * * @package Markup */ $GLOBALS['markup_theme_options'] = markup_get_options_value(); global $markup_theme_options; $enable_slider = absint($markup_theme_options['markup_enable_slider']); $enable_box = $markup_theme_options['markup_enable_promo']; ?> <!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="https://gmpg.org/xfn/11"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php //wp_body_open hook from WordPress 5.2 if ( function_exists( 'wp_body_open' ) ) { wp_body_open(); }else { do_action( 'wp_body_open' ); } ?> <div id="page" class="site "> <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'markup' ); ?></a> <?php /** * Hook - markup_action_header. * * @hooked markup_add_main_header - 10 */ do_action( 'markup_action_header' ); ?> <?php if ($enable_slider == 1 && (is_home() || is_front_page())) { ?> <section class="slider-wrapper"> <?php /* * Slider Section Hook */ do_action('markup_action_slider'); ?> </section> <?php } ?> <?php if ($enable_box == 1 && (is_home() || is_front_page() ) ) { ?> <section class="promo-slider-wrapper"> <?php /* * Boxes Section Hook */ do_action('markup_action_boxes'); ?> </section> <?php } ?>
Uncategorized

Robot Chef Prepares Dishes After Learning From Videos. WATCH

[ad_1]

There are many skills in which robots cannot match humans, and one of them is cooking. Now, researchers at the University of Cambridge have trained a robot “chef” to make dishes after watching videos and learning how to cook.

Training robots in certain tasks has been a challenge for a long time. For example, if a user asks how to cook a certain dish, a robot may be able to give clear instructions such as: get the vegetables out of the fridge, chop them, put them into a pan, add these other ingredients, etc. But when the robot is asked to do these tasks, it usually fumbles.

In the new experiment, researchers programmed the robot with eight simple recipes, all of them salads. Then it was made to watch a video in which a human demonstrates one of the recipes. Having been programmed, the robot was able to identify which of the eight recipes was being demonstrated, and eventually made the recipe itself. In fact, after successfully completing the eight dishes, the robot came up with a ninth recipe on its own, Cambridge University said in a statement.

It said the results of the experiment shows that video content could lead to easier and cheaper deployment of robot chefs. The results have been described in the journal IEEE Access.

ALSO READ | Science For Everyone: How The Periodic Table Arranges The Elements, And Its Significance

Over the years, many science-fiction films have shown robots preparing food. In real life, commercial companies have built prototype robot chefs. However, the Cambridge statement said, “none of these are currently commercially available, and they lag well behind their human counterparts in terms of skill”.

 “We wanted to see whether we could train a robot chef to learn in the same incremental way that humans can – by identifying the ingredients and how they go together in the dish,” the statement quoted the paper’s first author, Grzegorz Sochacki, as saying.

The robot was trained with an existing neural network, which had already been programmed to identify several fruits and vegetables (broccoli, carrot, apple, banana and orange). Using computer vision techniques, the robot watched the different objects shown in the video, as well as the movements of the human demonstrator. It watched 16 videos and recognised the correct recipe 93% of the time, and the human chef’s actions 83% of the time, the statement said.

 “It’s amazing how much nuance the robot was able to detect,” Sochacki was quoted as saying.

[ad_2]

Source link

<?php /** * The template for displaying the footer * * Contains the closing of the #content div and all content after. * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * * @package Markup */ global $markup_theme_options; $copyright = wp_kses_post($markup_theme_options['markup-footer-copyright']); if ( is_active_sidebar('footer-1') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3') || is_active_sidebar('footer-4') ) { $count = 0; for ( $i = 1; $i <= 4; $i++ ) { if ( is_active_sidebar( 'footer-' . $i ) ) { $count++; } } $footer_col= 4; if( $count == 4 ) { $footer_col= 4; } elseif( $count == 3) { $footer_col= 3; } elseif( $count == 2) { $footer_col= 2; } elseif( $count == 1) { $footer_col= 1; } } ?> <div class="footer-full-width"> <?php if ( is_active_sidebar( 'full-width-footer' ) ){ dynamic_sidebar( 'full-width-footer' ); } ?> </div> <div class="footer-wrap"> <div class="container"> <div class="row"> <?php for ( $i = 1; $i <= 4 ; $i++ ){ if ( is_active_sidebar( 'footer-' . $i ) ) { ?> <div class="footer-col-<?php echo absint( $footer_col ); ?>"> <div class="footer-top-box wow fadeInUp"> <?php dynamic_sidebar( 'footer-' . $i ); ?> </div> </div> <?php } } ?> </div> </div> <footer class="site-footer"> <div class="container"> <div class="row"> <div class="col-sm-6"> <div class="copyright"> <?php echo wp_kses_post( $copyright ); ?> <span class="sep"> | </span> <?php /* translators: 1: Theme name, 2: Theme author. */ printf( esc_html__( 'Theme: %1$s by %2$s.', 'markup' ), 'Markup', '<a href="https://www.templatesell.com/">Template Sell</a>' ); ?> </div> </div> <div class="col-sm-6"> <div class="footer-menu"> <?php wp_nav_menu( array( 'theme_location' => 'footer', 'menu_id' => 'footer-menu', 'menu_class' => 'footer-menu', ) ); ?> </div> </div> </div> </div> </footer> <?php do_action('markup_go_to_top_hook'); ?> </div> </div><!-- #page --> <?php wp_footer(); ?> </body> </html>