Flashield's Blog

Just For My Daily Diary

Flashield's Blog

Just For My Daily Diary

Day: August 27, 2024

04.exercise-the-sliding-window【练习:滑动窗口】

This notebook is an exercise in the Computer Vision course. You can reference the tutorial at this link. Introduction 简介 In these exercises, you’ll explore the operations a couple of popular convnet architectures use for feature extraction, learn about how convnets can capture large-scale visual features through stacking layers, and finally see how convolution can […]

04.course-the-sliding-window【滑动窗口】

import numpy as np from itertools import product from skimage import draw, transform def circle(size, val=None, r_shrink=0): circle = np.zeros([size[0]+1, size[1]+1]) rr, cc = draw.circle_perimeter( size[0]//2, size[1]//2, radius=size[0]//2 – r_shrink, shape=[size[0]+1, size[1]+1], ) if val is None: circle[rr, cc] = np.random.uniform(size=circle.shape)[rr, cc] else: circle[rr, cc] = val circle = transform.resize(circle, size, order=0) return circle def […]

Scroll to top