YGZWQZD / LAMDA-SSL

30 Semi-Supervised Learning Algorithms
MIT License
184 stars 16 forks source link

Pi Model for MNIST #13

Open kinto-b opened 11 months ago

kinto-b commented 11 months ago

The lack of colour channels in MNIST (and MNIST-like) datasets means we get errors. It looks like the network implementations aren't set up to handle single channel inputs? Could you parameterise them so that they can be used for MNIST? It would be ideal to just write:

# This:
model = PiModel(channels=1)

# Or this
model = PiModel(shape=(28,28,1))