Quiz 2
Registry Synced

Computer Vision

73 words
1 min read

Computer Vision

python
import torch
import torch.nn as nn
import torchvision
import torchvision.transforms as transforms
# Load CIFAR-10
transform = transforms.Compose([
    transforms.ToTensor(),
    transforms.Normalize((0.5,), (0.5,))
])
trainset = torchvision.datasets.CIFAR10(
    root='./data', train=True, download=True, transform=transform
)
trainloader = torch.utils.data.DataLoader(
    trainset, batch_size=32, shuffle=True
)
# Pre-trained ResNet
model = torchvision.models.resnet18(pretrained=True)
# Freeze layers
for param in model.parameters():
    param.requires_grad = False
# Replace classifier
model.fc = nn.Linear(512, 10)
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.