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

Update MobileNet-v1 flows to FINN v0.10 #80

Merged
merged 4 commits into from
Apr 21, 2024
Merged
Show file tree
Hide file tree
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
12 changes: 6 additions & 6 deletions build/mobilenet-v1/build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright (c) 2020, Xilinx
# Copyright (C) 2020-2022, Xilinx, Inc.
# Copyright (C) 2024, Advanced Micro Devices, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -44,10 +45,8 @@
model_name = "mobilenetv1-w4a4"

# which platforms to build the networks for
# zynq_platforms = ["ZCU102", "ZCU104"]
zynq_platforms = ["ZCU102"]
# alveo_platforms = ["U50", "U200", "U250", "U280"]
alveo_platforms = ["U250"]
zynq_platforms = ["ZCU104"] # "ZCU104"
alveo_platforms = ["U250"] # "U50", "U200", "U280"
platforms_to_build = zynq_platforms + alveo_platforms


Expand Down Expand Up @@ -132,7 +131,8 @@ def select_build_steps(platform):
steps=select_build_steps(platform_name),
output_dir="output_%s_%s" % (model_name, release_platform_name),
folding_config_file="folding_config/%s_folding_config.json" % platform_name,
specialize_layers_config_file="specialize_layers_config.json",
specialize_layers_config_file="specialize_layers_config/%s_specialize_layers_config.json"
% platform_name,
synth_clk_period_ns=select_clk_period(platform_name),
board=platform_name,
shell_flow_type=shell_flow_type,
Expand Down
2 changes: 1 addition & 1 deletion build/mobilenet-v1/custom_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def step_mobilenet_convert_to_hw_layers(model: ModelWrapper, cfg: DataflowBuildC
def step_mobilenet_slr_floorplan(model: ModelWrapper, cfg: DataflowBuildConfig):
if cfg.shell_flow_type == ShellFlowType.VITIS_ALVEO:
try:
from finn.analysis.partitioning import partition
from finnexperimental.analysis.partitioning import partition

# apply partitioning of the model, restricting the first and last layers
# to SLR0
Expand Down
Loading