starline / README.md
mattyamonaca's picture
Add application file
e3dd038
|
raw
history blame
1.28 kB

starline

Strict coloring machine for line drawings.

image

https://github.com/mattyamonaca/starline/assets/48423148/8199c65c-a19f-42e9-aab7-df5ed6ef5b4c

Installation

git clone https://github.com/mattyamonaca/starline.git
cd starline
conda create -n starline python=3.10
conda activate starline
conda install pytorch torchvision pytorch-cuda=12.1 -c pytorch -c nvidia
pip install -r requirements.txt

Usage

  • python app.py

  • Input the line drawing you wish to color (The background should be transparent).

  • Input a prompt describing the color you want to add.

  • ่ƒŒๆ™ฏใ‚’้€้Žใ—ใŸ็Šถๆ…‹ใง็ทš็”ปใ‚’ๅ…ฅๅŠ›ใ—ใพใ™

  • ไป˜ใ‘ใŸใ„่‰ฒใ‚’่ชฌๆ˜Žใ™ใ‚‹ใƒ—ใƒญใƒณใƒ—ใƒˆใ‚’ๅ…ฅๅŠ›ใ—ใพใ™

Precautions

  • Image size 1024 x 1024 is recommended.

  • Aliasing is a beta version.

  • Areas finely surrounded by line drawings cannot be colored.

  • ็”ปๅƒใ‚ตใ‚คใ‚บใฏ1024ร—1024ใ‚’ๆŽจๅฅจใ—ใพใ™

  • ใ‚จใ‚คใƒชใ‚ขใ‚นๅ‡ฆ็†ใฏฮฒ็‰ˆใงใ™ใ€‚ใ‚ˆใ‚Š็ทš็”ปใซๅฟ ๅฎŸใงใ‚ใ‚‹ใ“ใจใ‚’ๆฑ‚ใ‚ใ‚‹ๅ ดๅˆใฏ2ๅ€ค็ทš็”ปใ‚’ๆŽจๅฅจใ—ใพใ™

  • ็ทš็”ปใง็ดฐใ‹ใๅ›ฒใพใ‚ŒใŸ้ƒจๅˆ†ใฏ็€่‰ฒใงใใพใ›ใ‚“ใ€‚็€่‰ฒใงใใชใ„้ƒจๅˆ†ใฏ้€้Žใ—ใŸ็Šถๆ…‹ใงๅ‡บๅŠ›ใ•ใ‚Œใพใ™ใ€‚