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
# photo_plasticity.py | |
# Visual demo of selective plasticity (Pop Rank concept) on images using MLX + Pillow + NumPy | |
import argparse | |
import numpy as np | |
from PIL import Image | |
import mlx.core as mx | |
def pad32_hw(X): |
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
#!/bin/zsh | |
# Check for the correct number of arguments | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 directory" | |
exit 1 | |
fi | |
# The directory to be processed | |
search_dir=$1 |