- On Host: chrome.exe --remote-debugging-port=9222 --user-data-dir="D:\ChromeDevData"
- On Host: Add firewall rule to allow 9222 access
- On Host: Get WSL Hyper-V firewall IP(ipconfig, should be like 172.xx.xx.1)
- On Host: netsh interface portproxy add v4tov4 listenport=9222 listenaddress=127.0.0.1 connectport=9222 connectaddress=172.xx.xx.1
- In WSL2: nc -vz 172.xx.xx.1 9222 (should be success)
- WSL2中使用的是微软的自定义内核,这导致内核版本和apt库中的内核版本基本不会匹配,进而使得系统认为某些和内核版本强关联的软件(如usbip)没有安装
- 因此在安装了匹配内核版本的软件包后,需要使用某种机制让软件被调用时自动关联最新版本的二进制路径
sudo update-alternatives --install /usr/local/bin/usbip usbip `ls /usr/lib/linux-tools/*/usbip | tail -n1` 20
- MIT Technology Review
- Nature
- https://ciechanow.ski/
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
| # Force model to always use specified device | |
| # Place in `ComfyUI\custom_nodes` to use | |
| # City96 [Apache2] | |
| # | |
| import types | |
| import torch | |
| import comfy.model_management | |
| class OverrideDevice: | |
| @classmethod |
- Official tutorial won't work if you behind a corp proxy
- Add the following code to fix:
import openai openai.proxy = "http://IP:PORT" - Additionally, you can set api key like:
openai.api_key_path = "path/to/the/key"
NewerOlder