Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
ohayonguy
/
PMRF
like
293
Running
on
Zero
App
Files
Files
Community
4
Fetching metadata from the HF Docker repository...
363cb41
PMRF
/
utils
/
img_utils.py
ohayonguy
first commit fixed
b7f3942
4 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
)