Skip to content

Migrate Graph_TorchvisionModel to the current dataset API - #1236

Closed
fbonc wants to merge 1 commit into
sunlabuiuc:masterfrom
fbonc:migrate-graph-torchvision-dataset-api
Closed

fbonc wants to merge 1 commit into
sunlabuiuc:masterfrom
fbonc:migrate-graph-torchvision-dataset-api

Conversation

@fbonc

@fbonc fbonc commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Problem
The model uses the old BaseModel constructor and removed label-tokenizer methods. It also hardcodes the image field and expects legacy lists. Its GCN applies log_softmax unconditionally, forcing binary predictions to 0.5.

Fix
Derive fields and output size from the dataset, consume processed tensors, and return raw GCN logits for the task-specific loss and activation.

Tests
Added forward/backward tests covering binary, multiclass, and multilabel outputs, custom field names, and grayscale/RGB images.

Notes
The legacy NeighborSampler is unchanged -- tests supply adjacencies directly.

@fbonc fbonc closed this Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant