This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Return if product can be added to the cart | |
* @param $valid | |
* @param $product_id | |
* @return bool | |
*/ | |
function avoid_special_products_mix($valid, $product_id): bool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""A python script to convert Numpy NPZ files containing torch-compatible shaped arrays of images | |
You can run this file with command: | |
python npz_to_to_image.py [PATH_TO_NPZ_FILE] [PATH_TO_DESTINATION_FOLDER] [IMAGE_EXTENSION] | |
""" | |
import os | |
import numpy as np | |
import argparse | |
from tqdm import tqdm |