-
Clone this repo.
-
Import spinnrad in your Python script.
import sys
sys.path.append('path/to/spinnrad')
from spinnrad import layerplot
-
Create a pytorch model
model
and a dataloaderdataloader
. -
Get an example image and plot the layers.
img = next(iter(dataloader()))[0][0]
layerplot(img, model)