Skip to content

Instantly share code, notes, and snippets.

View cbalint13's full-sized avatar

Balint Cristian cbalint13

  • Earth, MilkyWay, Laniakea
View GitHub Profile
@cbalint13
cbalint13 / litepcie_opt_rom.py
Created December 14, 2022 23:02 — forked from jevinskie/litepcie_opt_rom.py
I have a lazy friend wildcard who needs help creating his FPGA design. Implement a PCIe device with an option rom by using the LiteX Python framework.
from litex.build.generic_platform import *
from litex.build.xilinx import XilinxPlatform
# Create the platform object
platform = XilinxPlatform("my_platform")
# Add the PCIe device to the platform
platform.add_extension([
("pcie_phy", 0,
Subsignal("rst_n", Pins("")),
@cbalint13
cbalint13 / image-match-timelapse.py
Last active June 27, 2024 16:17
Image coregister for timelapse
#!/usr/bin/python3
"""
**********************************************************
* BSD License *
* Copyright (c) 2022 *
* Balint Cristian <cristian dot balint at gmail dot com> *
**********************************************************
# Little script to Homography match images into animation
@cbalint13
cbalint13 / OpenLANE.md
Last active April 1, 2023 16:50
OpenLANE steps
@cbalint13
cbalint13 / tvm-micro-pr7392.py
Created February 2, 2021 16:57
tvm-micro-pr7392
#!/usr/bin/python
import onnx
import numpy as np
import tvm
from tvm import te
import tvm.relay as relay
###
@cbalint13
cbalint13 / feature.md
Created August 5, 2020 17:46 — forked from merrymercy/feature.md
Feature description for autotvm

Features

Loop-based Feature

For an IterVar (or an axis), it has three kinds of features

  • axis attribute
  • arithmetic feature
  • touch feature

Axis Attribute

#!/usr/bin/python3
#import nnvm.frontend.darknet
import tvm.relay.testing.yolo_detection
import tvm.relay.testing.darknet
import tvm.relay.transform as _transform
import matplotlib.pyplot as plt
import numpy as np
import tvm
import onnx
@cbalint13
cbalint13 / yolo-quantization-demo.py
Last active August 9, 2025 06:46
TVM quantized YoloV3 demo
#!/usr/bin/python3
import nnvm
import nnvm.frontend.darknet
import tvm.relay.testing.yolo_detection
import tvm.relay.testing.darknet
import tvm.relay.transform as _transform
import matplotlib.pyplot as plt
import numpy as np
import tvm
@cbalint13
cbalint13 / winograd_tile_size.py
Last active August 6, 2019 05:47
Upgrade TOPHUB winograd entries.
#!/usr/bin/python3
import sys
import json
old_file = 'arm_cpu_v0.04.log'
new_file = 'arm_cpu_v0.05.log'
fn = open(new_file, 'w')
with open(old_file) as fp:
@cbalint13
cbalint13 / old-vs-new-winograd-2_4.log
Created July 24, 2019 20:23
TVM_Winograd_OLD_vs_NEW_2_4_6
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#