This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from contextlib import asynccontextmanager | |
import open3d as o3d | |
import uvicorn | |
from fastapi import FastAPI | |
import torch | |
import torchvision.models as models | |
feature_extractor = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
def remove_folders_recursively(start_path, folder_names, exclude_path): | |
for root, dirs, files in os.walk(start_path, topdown=True): | |
# Skip the excluded directory | |
dirs[:] = [d for d in dirs if os.path.join(root, d) != exclude_path] | |
for dir_name in dirs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Fertigo"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css"> | |
<div class="container-fluid"> | |
<h1 class="text-primary" align="center">Isaac Newton</h1> | |
<div class="well" id="main"><b>Sir Isaac Newton</b> was an English mathematician, astronomer, and physicist who is widely recognised as one of the most influential scientists of all time and a key figure in the scientific revolution.</div> | |
<div class=row> | |
<div class="col-xs-6" align="center"> | |
<img src="http://www.logosapologia.org/wp-content/uploads/2012/04/Isaac_Newton.jpg" alt="IsaacNewton" class="img-responsive animated fadeIn"> | |
</div> |