Open dannyhow12 opened 2 years ago
You need to call your model with some input, and then pass the output of your model to make_dot
.
Not sure what your UNet implementation looks like, but the following might work.
e.g.
model = UNet(...)
output = model(image)
make_dot(output, params=dict(model.named_parameters()))
Perhaps do output.mean()
instead of output
in the make_dot
function if the above throws an error
Hi! Thanks for the great work!
I am planning to visualize my model, where the model used is UNet.
make_dot(model.mean(), params=dict(model.named_parameters()))
This prompts an error that says UNet has no attribute mean. May I ask for further clarification on this and if I defined it correctly?
Regards, Danny