Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
ohayonguy/PMRF
doevent
/
PMRF
like
2
Running
on
Zero
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
cd4eb22
PMRF
/
utils
/
img_utils.py
ohayonguy
first commit fixed
b7f3942
6 months ago
raw
Copy download link
history
blame
175 Bytes
from
torchvision.utils
import
make_grid
def
create_grid
(
img, normalize=
False
, num_images=
5
):
return
make_grid(img[:num_images], padding=
0
, normalize=normalize, nrow=
16
)