Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix architecture name in network diagram script #86

Merged
merged 3 commits into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions viscy/scripts/network_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
# %%
# 3D->2D
model = VSUNet(
architecture="UNext2",
architecture="UNeXt2",
model_config={
"in_channels": 2,
"out_channels": 3,
Expand All @@ -61,17 +61,18 @@
model_graph = draw_graph(
model,
model.example_input_array,
graph_name="UNext2",
graph_name="UNeXt2",
roll=True,
depth=3,
expand_nested=True,
)

model_graph.visual_graph

# %%
# 3D->3D
model = VSUNet(
architecture="UNext2",
architecture="UNeXt2",
model_config={
"in_channels": 1,
"out_channels": 2,
Expand All @@ -85,9 +86,10 @@
model_graph = draw_graph(
model,
model.example_input_array,
graph_name="UNext2",
graph_name="UNeXt2",
roll=True,
depth=3,
expand_nested=True,
)

model_graph.visual_graph
Expand Down Expand Up @@ -118,15 +120,8 @@
graph_name="VSCyto2D",
roll=True,
depth=3,
expand_nested=True,
)

fcmae = model_graph.visual_graph
fcmae

# %%

model_graph.visual_graph.render(
format="svg",
)

# %%
Loading