Skip to content

Instantly share code, notes, and snippets.

View p1atdev's full-sized avatar
😢
I may be slow to respond.

Plat p1atdev

😢
I may be slow to respond.
View GitHub Profile
@p1atdev
p1atdev / wd-swinv2-tagger-v3-hf-pipe.ipynb
Created March 10, 2024 18:24
wd-swinv2-tagger-v3-hf-pipe.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@p1atdev
p1atdev / lightnovel-retnet-xl.ipynb
Last active October 22, 2023 12:13
LightNovel-RetNet-XL.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@p1atdev
p1atdev / opencalm.ipynb
Last active May 17, 2023 02:55
opencalm.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@p1atdev
p1atdev / README.md
Last active May 6, 2023 05:58
Jupyter Lab on Modal through Tailscale

Modal で sd-scripts など

Modal 自体のセットアップは以下の記事を参照

https://zenn.dev/cp20/articles/stable-diffusion-webui-with-modal

永続ストレージの設定(欲しい人だけ)

コスト高いのでやらなくていいと思う。

app_name や 共有ボリューム名などは自由です。

@p1atdev
p1atdev / README.md
Last active April 24, 2023 07:36
Preprocess images and captions
  • filter.py: キャプションで画像をフィルター
  • cut_username.py: 画像の下数%をカットする。画像下部にユーザーネームがあるような画像に対して実行する。
@p1atdev
p1atdev / README.md
Created March 29, 2023 04:08
Cosppi Scraping

Usage

python ./dump.py --output ./all-rank.json --sort all-rank
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@p1atdev
p1atdev / README.md
Last active February 5, 2023 03:07
BLIP2 Captioning
@p1atdev
p1atdev / charts.py
Last active January 30, 2023 04:09
Scrape AppStore Charts
import requests
from bs4 import BeautifulSoup
import json
import argparse
base = "https://apps.apple.com"
def getLinkListJson(html):
soup = BeautifulSoup(html, 'html.parser')
shoebox = soup.find('script', {'id': 'shoebox-media-api-cache-apps'}).text
@p1atdev
p1atdev / fix-position-ids.ipynb
Last active March 5, 2023 18:13
fix-position-ids.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.