How aayushi-banthia/drawasaurus works
Drawasaurus is a Streamlit drawing game: players receive a prompt, sketch it, submit the canvas, and earn points when independent model judges identify the target. The game includes round/history scoring and confidence feedback; training scripts separately download and preprocess Quick, Draw! data and produce model checkpoints. The sampled excerpts show app-to-PICO integration and training behavior, but omit much of app.py’s inference and model-loading code, so those links are limited to documented or directly indexed relationships.
Main entry points: app.py Judge inference · train.py Scratch training · train_pretrained.py Pretrained fine-tuning · classes.txt Class labels
Components 18
Game experience
- Game interface
app.py - Drawing prompts
app.py - Drawing canvas
app.py - Round state
app.py - Scoring and history
app.py
AI judges
- Sketch preprocessing
app.py - Judge inference
app.py - ResNet judge
app.py - VGG judge
app.py - MobileNet judge
app.py - PICO architecture
pico.py - Class labels
classes.txt - Model checkpoints
weights
Model training
- Scratch training
train.py - Pretrained fine-tuning
train_pretrained.py - Training dataset
train.py
Other components
- Player
- Quick, Draw!
Connections 23
- Player → Game interface: plays
README.md - Game interface → Drawing prompts: shows prompt
README.md - Game interface → Drawing canvas: renders canvas
README.md - Player → Drawing canvas: draws sketch
README.md - Game interface → Round state: tracks rounds
app.py - Game interface → Sketch preprocessing: prepares sketch
app.py - Game interface → Judge inference: submits sketch
app.py - Judge inference → ResNet judge: dispatches
app.py - Judge inference → VGG judge: dispatches
app.py - Judge inference → MobileNet judge: dispatches
app.py - Judge inference → PICO architecture: dispatches
app.py - Judge inference → Class labels: loads labels
- Judge inference → Model checkpoints: loads checkpoints
- Judge inference → Scoring and history: returns predictions
app.py - Game interface → Scoring and history: updates score
app.py - Scratch training → Quick, Draw!: downloads drawings
train.py - Pretrained fine-tuning → Quick, Draw!: downloads drawings
train_pretrained.py - Scratch training → Training dataset: builds dataset
train.py - Pretrained fine-tuning → Training dataset: builds dataset
train_pretrained.py - Scratch training → Class labels: writes labels
train.py - Pretrained fine-tuning → Class labels: writes labels
train_pretrained.py - Scratch training → Model checkpoints: saves checkpoints
train.py - Pretrained fine-tuning → Model checkpoints: saves checkpoints
train_pretrained.py