Wednesday, 8 November 2023

How to create model viewer for glb file to run in website.

 Below is the soure code to view glb file in website.


<!-- starts here-->
        <style> #mvdemo { width: 50%; height: 500px; } </style>
        <script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
        <script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>        
        <model-viewer id="mvdemo" shadow-intensity="1" src="{{asset('TRY2.glb')}}" alt=""
        loading="eager" camera-controls touch-action="pan-y" auto-rotate poster=""></model-viewer>
        <!-- ends here -->

Machine Learning - Potato Leaf Disease Prediction

Step 1: import numpy as np import pandas as pd import splitfolders import matplotlib.pyplot as plt import tensorflow as tf from tensorflow i...