Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vipin Thomas
Cathumbnailer
Commits
d38e1cb1
Commit
d38e1cb1
authored
Apr 09, 2021
by
Vipin Thomas
Browse files
Update temp.ipynb
parent
e1558778
Changes
1
Hide whitespace changes
Inline
Side-by-side
temp.ipynb
0 → 100644
View file @
d38e1cb1
%% Cell type:code id: tags:
```
python
### TODO import libraries and apply overlay
```
%% Cell type:code id: tags:
```
python
### TODO download cat images into the folder `cats/`
```
%% Cell type:code id: tags:
```
python
# image_in, image_out: PIL.Image
# image_out_size: (width, height)
def
fpga_resize
(
image_in
,
image_out_size
):
### YOUR CODE HERE
return
image_out
```
%% Cell type:code id: tags:
```
python
def
fpga_resize_images
(
image_paths
):
### YOUR CODE HERE
return
images
```
%% Cell type:code id: tags:
```
python
def
cpu_resize_images
(
image_paths
):
### YOUR CODE HERE
return
images
```
%% Cell type:code id: tags:
```
python
# TODO runtime comparison
```
%% Cell type:code id: tags:
```
python
image_paths
=
!
ls
cats
/*
jpg
```
%% Cell type:code id: tags:
```
python
# TODO timeit fpga_resize_images(image_paths)
```
%% Cell type:code id: tags:
```
python
# TODO timeit cpu_resize_images(image_paths)
```
%% Cell type:code id: tags:
```
python
# TODO visualization of comparison values using plots
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment