// image · Mukosame/Anime2Sketch

Anime2Sketch

Anime2Sketch — проект с открытым исходным кодом из категории «Изображения» от Mukosame (Mukosame/Anime2Sketch на GitHub). У него 2 131 звезда на GitHub и 172 форка, он распространяется по лицензии MIT и последний раз обновлялся на GitHub 8 сентября 2026.

Extract clean line sketches from anime art, illustrations, and manga with a pretrained GAN model.

★ 2,1 тыс. звёзд⑂ 172 форкаMITобновлено сент. 2026
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
Mukosame/Anime2Sketch
Звёзды GitHub
2 131
Форки
172
Лицензия
MIT
Последнее обновление на GitHub
8 сентября 2026
Категория
Изображения
Тип страницы
Полное руководство по установке
// как это работает

Как это работает

  1. Clarify your goal

    Gather the illustrations or images you want converted to sketches, and decide on CPU or GPU inference.

  2. Get the project

    Clone the repository and install the required packages.

  3. Install and configure

    Download the pretrained weights (including the artifact-free variant for dark or low-contrast images) into the weights folder.

  4. Run your first task

    Run the test script on a file or directory, choosing input size and output directory, and review the extracted sketches.

// возможности

Почему его любят

Pretrained sketch model

Ships with downloadable weights ready for inference, including an artifact-free version tuned for dark and low-contrast images.

Works across illustration styles

Designed for illustrations, anime art, and manga, and also demonstrated on hand-drawn photos and freehand sketch cleanup.

Simple batch test script

One command processes a file or a whole directory, resizing inputs to a configurable load size such as 512.

Docker environment

A Makefile-driven Docker build and run flow mounts your input and output folders, with documented tweaks for CPU-only runs.

Research-backed method

Implements the published adversarial open domain adaptation approach, with citations to the WACV 2022 paper.

Web demo available

A community Gradio demo linked from the README lets you try the model without installing anything.

Advertisement
// запустите сами

Запустите сами

  1. Clone and install requirements

    Python 3 with Pillow and PyTorch is required.

    git clone https://github.com/Mukosame/Anime2Sketch.git
    cd Anime2Sketch
    pip install -r requirements.txt
  2. Download the pretrained weights

    Fetch the weights from the Google Drive link in the README and place them in the weights folder.

    # download weights per README and put them into weights/
  3. Run sketch extraction

    Process the bundled example or your own images.

    python3 test.py --dataroot test_samples/madoka.jpg --load_size 512 --output_dir results/
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains it?

It is maintained by Mukosame (Xiaoyu Xiang) and collaborators, from the research group behind the underlying paper.

Is it free to use?

Yes, it is MIT-licensed, and the pretrained weights are freely downloadable.

Does it need a paid API key?

No API key is involved; the model runs locally in PyTorch.

How does it compare to a well-known alternative?

Generic edge detectors find gradients everywhere; Anime2Sketch is a learned model trained to produce clean, human-style sketch lines from artwork and suppress colour and shading noise.

How do I get started?

Clone the repo, pip install -r requirements.txt, download the weights into weights/, and run test.py on your image.

// продолжить изучение

Похожие инструменты

Изображения

PhotoCraft

PhotoCraft — a clean-room Photoshop reimplementation in pure Rust: layers, masks, adjustment layers, type, vectors, brushes and real PSD files, offline, MIT / Apache-2.0

★ 73,2 тыс. звёздMIT / Apache-2.0
Смотреть руководство →
Изображения

SAM 2

SAM 2 — Meta's Segment Anything Model 2: promptable segmentation for images and video, Apache-2.0

★ 20,1 тыс. звёздApache-2.0
Смотреть руководство →
Изображения

krita

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE an…

★ 10,5 тыс. звёздGPL-3.0
Смотреть руководство →
Изображения

Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or…

★ 10,5 тыс. звёздMIT
Смотреть руководство →
Изображения

DragGAN

Unofficial DragGAN implementation: drag points on a GAN image to edit it interactively

★ 4,9 тыс. звёздNOASSERTION
Смотреть руководство →
Изображения

sprite-gen

Generate clean 2D game sprites and animation atlases from one drawing — a Codex/Claude skill and Python CLI

★ 2,6 тыс. звёздApache-2.0
Смотреть руководство →
// альтернативы

Альтернативы: Изображения

Другие проекты из категории «Изображения» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если Anime2Sketch вам не подходит.

// ещё в категории image

Больше проектов: Изображения

Соседние проекты из категории «Изображения» в каталоге, ближайшие по числу звёзд к Anime2Sketch — продолжайте изучать полку по обе стороны от него.

Получить Anime2Sketch

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.