Skip to content

Commit

Permalink
[Bitfiles] Update to new bitfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
auphelia committed Aug 14, 2024
1 parent a97dde4 commit 96b40c4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jupyter-notebook --no-browser --allow-root --port=8888

First, create & source a virtual environment:
```shell
conda create -n <virtual-env> python=3.10
conda create -n <virtual-env> python=3.8
conda activate <virtual-env>
```

Expand Down
16 changes: 8 additions & 8 deletions finn_examples/bitfiles/bitfiles.zip.link
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"Pynq-Z1": {
"url": "https://github.com/Xilinx/finn-examples/releases/download/v0.0.6/Pynq-Z1.zip",
"md5sum": "54b4691e5195ff10fb0c5339b78d6ea5"
"url": "https://github.com/Xilinx/finn-examples/releases/download/v0.0.7a/Pynq-Z1.zip",
"md5sum": "402ab9dfa4612ae340715bf80e4717bd"
},
"Ultra96": {
"url": "https://github.com/Xilinx/finn-examples/releases/download/v0.0.6/Ultra96.zip",
"md5sum": "a297d1f5657f624ffce16c901f1f3f30"
"url": "https://github.com/Xilinx/finn-examples/releases/download/v0.0.7a/Ultra96.zip",
"md5sum": "f777342ebc7f589950cf96843aeb6781"
},
"ZCU104": {
"url": "https://github.com/Xilinx/finn-examples/releases/download/v0.0.6/ZCU104.zip",
"md5sum": "17dd6ba3d24002275b6622ae0c098378"
"url": "https://github.com/Xilinx/finn-examples/releases/download/v0.0.7a/ZCU104.zip",
"md5sum": "0e701e154a78e050cea69d2c9efefccf"
},
"xilinx_u250_xdma_201830_2": {
"url": "https://github.com/Xilinx/finn-examples/releases/download/rn50-u250/xilinx_u250_xdma_201830_2.zip",
"md5sum": "042cc5602c8a39d7541f1d79946c0b68"
},
"xilinx_u250_gen3x16_xdma_2_1_202010_1": {
"url": "https://github.com/Xilinx/finn-examples/releases/download/v0.0.6/xilinx_u250_gen3x16_xdma_2_1_202010_1.zip",
"md5sum": "59a61f233376ab0e340835034db50449"
"url": "https://github.com/Xilinx/finn-examples/releases/download/v0.0.7a/xilinx_u250_gen3x16_xdma_2_1_202010_1.zip",
"md5sum": "59d0089ebc135b0509c8ee5a8666b88f"
}
}
4 changes: 2 additions & 2 deletions finn_examples/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def mobilenetv1_w4a4_imagenet(target_platform=None, bitfile_path=None, rt_weight
def resnet50_w1a2_imagenet(target_platform=None, bitfile_path=None, rt_weights_path=None):
target_platform = resolve_target_platform(target_platform)
driver_mode = get_driver_mode()
model_name = "resnet50-w1a2"
model_name = "resnet50_w1a2"
filename = find_bitfile(model_name, target_platform, bitfile_path)
return FINNExampleOverlay(
filename,
Expand Down Expand Up @@ -393,6 +393,6 @@ def mlp_w2a2_unsw_nb15(target_platform=None, bitfile_path=None):
def cnv_w1a1_gtsrb(target_platform=None, bitfile_path=None):
target_platform = resolve_target_platform(target_platform)
driver_mode = get_driver_mode()
model_name = "cnv-gtsrb-w1a1"
model_name = "cnv_1w1a_gtsrb"
filename = find_bitfile(model_name, target_platform, bitfile_path)
return FINNExampleOverlay(filename, driver_mode, _gtsrb_cnv_io_shape_dict)
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"ok = 0\n",
"nok = 0\n",
"for i in range(n_batches):\n",
" ibuf_normal = batch_imgs[i].reshape(accel.ibuf_packed_device.shape)\n",
" ibuf_normal = batch_imgs[i].reshape(np.shape(accel.ibuf_packed_device))\n",
" exp = batch_labels[i]\n",
" # to avoid the slower software implementation during data unpacking,\n",
" # we make manual calls to buffer copies and execute_on_buffers\n",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def extend_package(path):
install_requires=[
"pynq>=2.5.1",
"bitstring>=3.1.7",
"numpy",
"numpy==1.24.1",
"finn-dataset_loading==0.0.5", # noqa
],
extras_require={
Expand Down

0 comments on commit 96b40c4

Please sign in to comment.