pocketflow/cookbook/pocketflow-batch-flow/main.py

17 lines
363 B
Python

import os
from PIL import Image
import numpy as np
from flow import create_flow
def main():
# Create and run flow
print("Processing images with filters...")
flow = create_flow()
flow.run({})
print("\nAll images processed successfully!")
print("Check the 'output' directory for results.")
if __name__ == "__main__":
main()