Downloads · 30 days
2
1% of all-time downloads
Lap1official/XylariaSelfDriving
XylariaSelfDriving is a machine learning model from Lap1official. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for keras. The card lists the license as apache-2.0.
The MoE (Mixture of Experts) Car Model is a deep learning model designed for autonomous driving and vehicle behavior prediction. It leverages a Mixture of Experts architecture to optimize decision-making across differ…
Downloads · 30 days
2
1% of all-time downloads
All-time downloads
330
Public
Repo size
813 MB
Likes
1
Public
Click a slice to open those files.
.keras487 MB · 100%
From the Hugging Face model README
The MoE (Mixture of Experts) Car Model is a deep learning model designed for autonomous driving and vehicle behavior prediction. It leverages a Mixture of Experts architecture to optimize decision-making across different driving scenarios, improving efficiency and adaptability in real-world environments.
The MoE Car Model consists of the following key components:
To run inference using the MoE Car Model:
pip install torch torchvision numpy opencv-python
import torch
import torchvision.transforms as transforms
import cv2
from model import MoECarModel # Assuming model implementation is in model.py
# Load model
model = MoECarModel()
model.load_state_dict(torch.load("moe_car_model.pth"))
model.eval()
# Preprocessing function
def preprocess_image(image_path):
image = cv2.imread(image_path)
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
transform = transforms.Compose([
transforms.ToPILImage(),
transforms.Resize((224, 224)),
transforms.ToTensor(),
transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
])
return transform(image).unsqueeze(0)
# Load sample image
image_tensor = preprocess_image("test_image.jpg")
# Run inference
with torch.no_grad():
output = model(image_tensor)
print("Predicted control outputs:", output)