fix bug
Achernar命名的由来
综上,本项目可以使你在通过请求本地flask_api,调用部署在kaggle的ai绘画服务,而无需频繁地进入cpolar网站查询你的代理隧道。
同时,使用playwright,在多个kaggle账号间切换,实现持久化的ai绘画服务。
安装python3.11
记住第一步勾选add to path就行了,剩下全默认。
运行一键部署脚本.bat
一键部署脚本.bat
kaggle和cpolar配置见链接
proxy: "" #没用,不用管这一项 port: 3529 headless: true #是否开启浏览器无头模式 #在shared_notebook填入记录的你的【分享链接】 shared_notebook: "" enable_kaggle_extension: true enable_cpolar_extension: true cpolar_check_interval: 360 kaggle_change_account_interval: 36000 kaggle_accounts: - email: "你的邮箱" password: "你的密码" - email: "你的第二个邮箱" password: "你的第二个密码" #以此类推 cpolar: email: "cpolar的邮箱" password: "cpolar的密码"
Eridanus对接Achernar
你可以直接向http://127.0.0.1:3529 发送请求,而无需再去cpolar手动记录代理隧道地址,比如。
payload = { "denoising_strength": 0.5, "enable_hr": 'false', "hr_scale": 1.5, "hr_second_pass_steps" : 15, "hr_upscaler" : 'SwinIR_4x', "prompt": f'score_9,score_8_up,score_7_up,{prompt},masterpiece,best quality,amazing quality,very aesthetic,absurdres,newest,', "negative_prompt": '((nsfw)),score_6,score_5,score_4,((furry)),lowres,(bad quality,worst quality:1.2),bad anatomy,sketch,jpeg artifacts,ugly, poorly drawn,(censor),blurry,watermark,simple background,transparent background', "seed": -1, "batch_size": 1, "n_iter": 1, "steps": 35, "cfg_scale": 6.5, "width": width, "height": height, "restore_faces": False, "tiling": False, "sampler_name": 'Euler a', "scheduler": 'Align Your Steps', "clip_skip_steps": 2, "override_settings": { "CLIP_stop_at_last_layers": 2, "sd_model_checkpoint": ckpt, # 指定大模型 }, "override_settings_restore_afterwards": False, } #manba out async with httpx.AsyncClient(timeout=None) as client: response = await client.post(url='http://127.0.0.1:3529/sdapi/v1/txt2img', json=payload) r = response.json()
spawner 提供了Achernar的账号切换脚本原型,以及编写了优秀的kaggle脚本。
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Achernar
Achernar命名的由来
简介
综上,本项目可以使你在通过请求本地flask_api,调用部署在kaggle的ai绘画服务,而无需频繁地进入cpolar网站查询你的代理隧道。
同时,使用playwright,在多个kaggle账号间切换,实现持久化的ai绘画服务。
部署
安装python
安装python3.11
记住第一步勾选add to path就行了,剩下全默认。
安装依赖
运行
一键部署脚本.bat
配置
kaggle和cpolar配置见链接
调用
用Eridanus对接
Eridanus对接Achernar
自行编写代码对接
你可以直接向http://127.0.0.1:3529 发送请求,而无需再去cpolar手动记录代理隧道地址,比如。
鸣谢
spawner 提供了Achernar的账号切换脚本原型,以及编写了优秀的kaggle脚本。