# SMC ATS-M Intel Edge to Cloud Event Demos ## YOLOv8n Instance Segmentation Demo ![](https://i.imgur.com/swM5xOP.jpg) ### Step 1: docker run --network host -it --rm --device=/dev/dri/ --cap-add SYS_ADMIN -v /dev/dri/by-path:/dev/dri/by-path -v /srv/intel/3_Media_Analytics/content/:/srv/intel/3_Media_Analytics/content smc-atsm/intel-e2c:yolov8n ### Step 2: source ./openvino_env/bin/activate ### Step 3: cd openvino_notebooks/ ### Step 4: (Please replace 172.16.20.9 with server's IP address) jupyter lab notebooks --allow-root --ip=172.16.20.9 Check output logs of "jupyter lab notebooks --allow-root --ip=172.16.20.9 like below and use browser to open "http://172.16.20.9:8888/lab?token=bcae23e80eae348e638d97247c4ca9a3c29a8b30de187e5e" #### [Begin of logs of "jupyter lab notebooks --allow-root --ip=172.16.20.9] (openvino_env) root@FlexSeries:/home/dlstreamer/openvino_notebooks# jupyter lab notebooks --allow-root --ip=172.16.20.9 [I 2023-03-16 14:45:40.080 ServerApp] Package jupyterlab took 0.0000s to import [I 2023-03-16 14:45:40.084 ServerApp] Package jupyter_server_fileid took 0.0033s to import [I 2023-03-16 14:45:40.090 ServerApp] Package jupyter_server_terminals took 0.0061s to import [I 2023-03-16 14:45:40.118 ServerApp] Package jupyter_server_ydoc took 0.0273s to import [I 2023-03-16 14:45:40.119 ServerApp] Package nbclassic took 0.0000s to import ... To access the server, open this file in a browser: file:///root/.local/share/jupyter/runtime/jpserver-13-open.html Or copy and paste one of these URLs: http://172.16.20.9:8888/lab?token=bcae23e80eae348e638d97247c4ca9a3c29a8b30de187e5e http://127.0.0.1:8888/lab?token=bcae23e80eae348e638d97247c4ca9a3c29a8b30de187e5e #### [End of logs of "jupyter lab notebooks --allow-root --ip=172.16.20.9] ### Step 5 : Click Restart Kernel and Run All Cells Button. Then Scroll down to bottom in the Browser to Wait Demo Running (about 1-2 mins) ![](https://i.imgur.com/gEA2M0N.png) ### Step 6 : Click Cell and then Ctrl+Enter to Run again ![](https://i.imgur.com/zH4VntX.jpg) ### Below are scritp for copy & paste ```=bash docker run --network host -it --rm --device=/dev/dri/ --cap-add SYS_ADMIN -v /dev/dri/by-path:/dev/dri/by-path -v /srv/intel/3_Media_Analytics/content/:/srv/intel/3_Media_Analytics/content smc-atsm/intel-e2c:yolov8n source ./openvino_env/bin/activate cd openvino_notebooks/ jupyter lab notebooks --allow-root --ip=172.16.20.9 ``` ## Stable Diffusion Demos ![](https://i.imgur.com/BKW23de.png) ### Step 1: docker run --network host -it --rm --device=/dev/dri/ --cap-add SYS_ADMIN -v /dev/dri/by-path:/dev/dri/by-path -v /srv/intel/3_Media_Analytics/content/:/srv/intel/3_Media_Analytics/content smc-atsm/intel-e2c:stablediff3 ### Step 2: source ./openvino_env/bin/activate ### Step 3: cd openvino_notebooks/ ### Step 4: (Please replace 172.16.20.9 with server's IP address) jupyter lab notebooks --allow-root --ip=172.16.20.9 Check output logs of "jupyter lab notebooks --allow-root --ip=172.16.20.9 like below and use browser to open "http://172.16.20.9:8888/lab?token=bcae23e80eae348e638d97247c4ca9a3c29a8b30de187e5e" ### Step 5 : Click Restart Kernel and Run All Cells Button. Then Scroll down to bottom in the Browser to Wait Demo Running (about 1-2 mins) ![](https://i.imgur.com/qTZpkjD.png) ### Step 6 - Text To Image Demo : #### Uncomment text_prompt fo image generation ![](https://i.imgur.com/3TCw2Lf.png) #### Run Those 6 Cells to Regenerate Image ![](https://i.imgur.com/atO9O4J.png) [Reference : Best 100+ Stable Diffusion Prompts: The Most Beautiful AI Text-to-Image Prompts] https://mpost.io/best-100-stable-diffusion-prompts-the-most-beautiful-ai-text-to-image-prompts/ ### Step 7 - Image to Image Demo #### Change "default_image_path" ![](https://i.imgur.com/pNpt0nV.png) #### Run Those 4 Cells to Regenerate Image ![](https://i.imgur.com/oyZHOiT.png) ### Below are scritp for copy & paste ```=bash docker run --network host -it --rm --device=/dev/dri/ --cap-add SYS_ADMIN -v /dev/dri/by-path:/dev/dri/by-path -v /srv/intel/3_Media_Analytics/content/:/srv/intel/3_Media_Analytics/content smc-atsm/intel-e2c:stablediff3 source ./openvino_env/bin/activate cd openvino_notebooks/ jupyter lab notebooks --allow-root --ip=172.16.20.9 ```