๐ŸŽจ PokeColor โ€” Pokรฉmon Card Colorizer

PokeColor is a deep learning model that automatically colorizes grayscale Pokรฉmon Trading Card Game (TCG) images. It is based on a U-Net architecture and trained on a large collection of official Pokรฉmon TCG card images.


๐Ÿ–ผ๏ธ Demo

grayscale -> generated -> original

Demo 1 Demo 2

๐Ÿง  Model Architecture

  • Architecture: U-Net (encoderโ€“decoder with skip connections)
  • Framework: PyTorch
  • Task: Image-to-image translation (grayscale โ†’ color)
  • Input: Grayscale Pokรฉmon TCG card image
  • Output: Colorized RGB image

๐Ÿ“ฆ Dataset

The model was trained on the Pokemon TCG โ€” All Image Cards dataset from Kaggle, which contains thousands of official Pokรฉmon card images spanning multiple generations and sets.


๐Ÿš€ Usage

Load the model

import torch
import torch.nn as nn
from torchvision import transforms
from PIL import Image

# Define your U-Net architecture (must match training)
# model = UNet(...)

# Load weights
model.load_state_dict(torch.load("pokemon_unet_colorizer.pth", map_location="cpu"))
model.eval()

Run inference

from PIL import Image
import torchvision.transforms.functional as TF

# Load and preprocess a grayscale image
img = Image.open("your_card.png").convert("L")  # Grayscale
img_tensor = TF.to_tensor(img).unsqueeze(0)      # Shape: [1, 1, H, W]

# Predict
with torch.no_grad():
    output = model(img_tensor)  # Shape: [1, 3, H, W]

# Save result
result = TF.to_pil_image(output.squeeze(0).clamp(0, 1))
result.save("colorized_card.png")

โš ๏ธ Make sure the U-Net architecture used for inference matches the one used during training (number of layers, channels, etc.).


๐Ÿ“ Files

File Description
pokemon_unet_colorizer.pth PyTorch model weights (373 MB)
demo-1.png Example input / output image 1
demo-2.png Example input / output image 2

โš™๏ธ Training Details

Parameter Value
Architecture U-Net
Loss function L1 / MSE (image reconstruction)
Dataset Pokรฉmon TCG All Image Cards (Kaggle)
Framework PyTorch

๐Ÿ‘ค Author

Made by DO2K26 /


๐Ÿ“œ License

This model is released under the Apache 2.0 license.
The training dataset is subject to its own Kaggle license.
Pokรฉmon and all related names are trademarks of Nintendo / Game Freak / The Pokรฉmon Company. This project is not affiliated with or endorsed by them.


๐Ÿ™ Acknowledgements

  • Dataset by ellimaaac on Kaggle
  • U-Net architecture originally introduced by Ronneberger et al. (2015)
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support