This is an unofficial gist for patching the A1111's webui so that makes the extension sd_webui_SAG work.
以从 Windows 设备(本地机)通过 SSH 连接到另一台 Windows 设备(远程机)为例。毕竟 Windows 是最难配置的,如果有一边是 Linux 设备会简单很多。
- 需要 Windows 10 或者更高的系统版本,以确认 OpenSSH 组件的安装。
- 不需要安装第三方 SSH 软件。
目录:
Known difficulties:
- Module
time
doesn't provide time operation. You can't doing "minus" between two timestamps.- Function
time.process_time()
can record the CPU running time (excluding sleep). This is for performance purpose, not for actual run.
- Function
- Module
datetime
records the time duration between two timestamps in classtype oftimedelta
. However, this type of variable doesn't supportstrftime
function.- So I decided to format the timedelta by myself.
Other methods that I don't like but may work for you:
- Define a decorator to help. This is useful when you define your main codes in a function like
main()
, but I don't like doing that because it introduces extra indentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
@author: Nzix | |
""" | |
import os, shutil, platform, subprocess | |
import re, zipfile, json | |
import ssl |
wklchris, last updated in Mar 2022
Table of Contents:
How to correctly set c_cpp_properties.json
of VS Code on Windows.
See link here: Official Reference.
Below is my personal working example, which does the compiling job as well as removes annoying wavy underlines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |