Giter Club home page Giter Club logo

pydrawing's Introduction


docs PyPI - Python Version PyPI license PyPI - Downloads PyPI - Downloads issue resolution open issues

Documents: https://pydrawing.readthedocs.io/

Pydrawing

Beautify your image or video.
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.

Support List

Beautifier_EN Introduction Related Paper Code Beautifier_CN
glitch click N/A click 信号故障特效
douyineffect click N/A click 抖音特效
characterize click N/A click 视频转字符画
cartoonise click N/A click 图像卡通化
photomosaic click N/A click 拼马赛克图片
beziercurve click N/A click 贝塞尔曲线画画
geneticfittingcircle click N/A click 遗传算法拟合图像-圆形
geneticfittingpolygon click N/A click 遗传算法拟合图像-多边形
nostalgicstyle click N/A click 照片怀旧风格
photocorrection click N/A click 简单的照片矫正
pencildrawing click click click 铅笔素描画
cartoongan click click click 卡通GAN
fastneuralstyletransfer click click click 快速风格迁移
cartoonizeface click click click 人脸卡通化
noteprocessor click click click 手写笔记处理
oilpainting click click click 照片油画化

Install

Preparation

  • ffmpeg: You should set ffmpeg in environment variable.
  • Pytorch: To apply some of the supported beautifiers (e.g., cartoongan), you need to install pytorch and corresponding dependencies following tutorial.

Pip install

run "pip install pydrawing"

Source code install

(1) Offline
Step1: git clone https://github.com/CharlesPikachu/pydrawing.git
Step2: cd pydrawing -> run "python setup.py install"
(2) Online
run "pip install git+https://github.com/CharlesPikachu/pydrawing.git@master"

Quick Start

import random
from pydrawing import pydrawing

filepath = 'asserts/dog.jpg'
config = {
    "savedir": "outputs",
    "savename": "output"
}
drawing_client = pydrawing.pydrawing()
drawing_client.execute(filepath, random.choice(drawing_client.getallsupports()), config=config)

Screenshot





Projects in Charles_pikachu

  • Games: Create interesting games by pure python.
  • DecryptLogin: APIs for loginning some websites by using requests.
  • Musicdl: A lightweight music downloader written by pure python.
  • Videodl: A lightweight video downloader written by pure python.
  • Pytools: Some useful tools written by pure python.
  • PikachuWeChat: Play WeChat with itchat-uos.
  • Pydrawing: Beautify your image or video.
  • ImageCompressor: Image compressors written by pure python.
  • FreeProxy: Collecting free proxies from internet.
  • Paperdl: Search and download paper from specific websites.
  • Sciogovterminal: Browse "The State Council Information Office of the People's Republic of China" in the terminal.
  • CodeFree: Make no code a reality.
  • DeepLearningToys: Some deep learning toys implemented in pytorch.
  • DataAnalysis: Some data analysis projects in charles_pikachu.
  • Imagedl: Search and download images from specific websites.
  • Pytoydl: A toy deep learning framework built upon numpy.
  • NovelDL: Search and download novels from some specific websites.

More

WeChat Official Accounts

Charles_pikachu
img

pydrawing's People

Contributors

charlespikachu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pydrawing's Issues

[BUG] ValueError: operands could not be broadcast together with shapes (3,) (0,)

Environment (使用环境)
google colab

  • Installation method (安装方式): pip install -U pydrawing
  • The version of pydrawing (版本号): Version: 0.1.9
  • Operating system (操作系统): ubuntu
  • Python version (Python版本): Python 3.10.12

Question description (问题描述)
photomosaic return error

Screenshot (报错截图)
image

Advice (修复建议)
can use photomosaic

best regards

[BUG] ValueError: x1 must be greater than or equal to x0

Environment (使用环境)
google colab

  • Installation method (安装方式): pip install -U pydrawing
  • The version of pydrawing (版本号): Version: 0.1.9
  • Operating system (操作系统): ubuntu
  • Python version (Python版本): Python 3.10.12

Question description (问题描述)
geneticfittingcircle return error

Screenshot (报错截图)
image

Advice (修复建议)
can use geneticfittingcircle

best regards

How to use?

I have installed this in a virtual environment using anaconda prompt but I have no idea how to use it, help please.

Thank you!

[BUG] geneticfittingpolygon process take long time around 10 minutes (still not finished)

Environment (使用环境)
google colab

  • Installation method (安装方式): pip install -U pydrawing
  • The version of pydrawing (版本号): Version: 0.1.9
  • Operating system (操作系统): ubuntu
  • Python version (Python版本): Python 3.10.12

Question description (问题描述)
geneticfittingpolygon process take long time around 10 minutes (still not finished)

Advice (修复建议)
can use geneticfittingpolygon faster

best regards

[BUG] AttributeError: _2D

Environment (使用环境)
google colab

  • Installation method (安装方式): pip install -U pydrawing
  • The version of pydrawing (版本号): Version: 0.1.9
  • Operating system (操作系统): ubuntu
  • Python version (Python版本): Python 3.10.12

Question description (问题描述)
cartoonizeface return error

Screenshot (报错截图)
image

Advice (修复建议)
can use cartoonizeface

best regards

[BUG] RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

Environment (使用环境)
google colab

  • Installation method (安装方式): pip install -U pydrawing
  • The version of pydrawing (版本号): Version: 0.1.9
  • Operating system (操作系统): ubuntu
  • Python version (Python版本): Python 3.10.12

Question description (问题描述)
fastneuralstyletransfer return error

Screenshot (报错截图)
image

Advice (修复建议)
can use fastneuralstyletransfer

best regards

[BUG] AssertionError:

Environment (使用环境)
google colab

  • Installation method (安装方式): pip install -U pydrawing
  • The version of pydrawing (版本号): Version: 0.1.9
  • Operating system (操作系统): ubuntu
  • Python version (Python版本): Python 3.10.12

Question description (问题描述)
glitch return error

Screenshot (报错截图)
image

Advice (修复建议)
can use glitch

best regards

[BUG] FileNotFoundError: [Errno 2] No such file or directory: '.tmp.svg'

Environment (使用环境)
google colab

  • Installation method (安装方式): pip install -U pydrawing
  • The version of pydrawing (版本号): Version: 0.1.9
  • Operating system (操作系统): ubuntu
  • Python version (Python版本): Python 3.10.12

Question description (问题描述)
beziercurve return error

Screenshot (报错截图)
image

Advice (修复建议)
can use beziercurve

best regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.