reeeemo/jigsaw_puzzle
Updated • 5
How to use reeeemo/ppo-puzzler with stable-baselines3:
from huggingface_sb3 import load_from_hub
checkpoint = load_from_hub(
repo_id="reeeemo/ppo-puzzler",
filename="{MODEL FILENAME}.zip",
)Reinforcement-Learning model (puzzler-v0) that utilizes MaskablePPO to guide assembly of a jigsaw puzzle (puzzle pieces with irregular, convex boundaries).
Code to train/create this custom environment can be found in the "How Puzzling!" github repo.
Initialization Parameters:
def __init__(self, images, seg_model_path, max_steps=100, device="cpu")
.reset() of the environmentmax_steps is set to the max number of puzzle piecesTraining data can be found in events.out.tfevents using tensorboard --logdir . after downloading the repo.
The environment was trained with VecNormalize from the stable_baselines3 libary, you can load from vec_normalize.pkl