Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
ohayonguy
/
PMRF
like
223
Running
on
Zero
App
Files
Files
Community
4
b7f3942
PMRF
/
utils
/
img_utils.py
ohayonguy
first commit fixed
b7f3942
14 days 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
)