File size: 3,699 Bytes
1c04fa1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
0,stable diffusion 图片尺寸很重要: 使用stablediffusion2.1_768_ema_pruned模型,当尺寸为768x512时,生成的图片像是有很多噪点一样,切换为768x768尺寸后,马上改善。 进一步测试,发现:只要宽或高设置不是768x768,它就画不好了。 然后,再搜索引擎找了一下说明,果然:Stable Diffusion 2.0 and 2.1 require both a model and a configuration file, and the image width & height will need to be set to 768 or higher when generating images... (white background:1.1),mid_shot,(bust:1.1),upper_body,realistic,front portrait of a man,30 years old,deep_skin,(square face:1.1),(silver hair:1.1),cocked eyebrow,blue eyes,big nose,thick lips,grin,teeth,long hair,in summer,blue t-shirt, (illustration of a boy riding bike:1.2),white_background,outline, 0, 123.60.67.167 1, find oldones/ -type f -name 'a*' -delete 2, scp -r local_path/ [email protected]:/remote_path/ Ctrl+z bg 然而,使用高性能文件传输工具rsync是一个更好的选择。 rsync -aPz sourcefolder/ [email protected]:/root/destinationfolder/ 3, 多个python版本共存/自由切换 https://github.com/pyenv/pyenv?tab=readme-ov-file#usage pyenv install 3.10.4 配置环境变量(根据自己系统,PYENV_ROOT路径可能不同) export PYENV_ROOT=/usr/local/Cellar/pyenv/2.4.13/ export PATH="$PYENV_ROOT/bin:$PATH" if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi Switch between Python versions To select a Pyenv-installed Python as the version to use, run one of the following commands: pyenv shell <version> -- select just for current shell session pyenv local <version> -- automatically select whenever you are in the current directory (or its subdirectories) pyenv global <version> -- select globally for your user account pyenv versions 4, nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash Close and reopen your terminal to start using nvm or run the following to use it now: export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion nvm install 20.0.0 nvm list 5, du -h 显示目录占用空间大小情况 如果显示太多,使用 --max-depth=1 控制显示的层级数,非常的方便好用 6, Argument list too long error for rm, cp, mv commands 解决: 例子, 删除: find . -name "*.pdf" -print0 | xargs -0 rm 移动: find . -type f -name '*.mp3' -exec mv {} ../pron/ \; 7, tar 压缩加密 tar -czvf - path2folder/ | openssl des3 -salt -k xyxyxyxyx -out ./file.tar.gz tar 解压 openssl des3 -d -k xyxyxyxyx -salt -in file.tar.gz | tar xzf - 8, How can I check if my CPU is AMD64 compatible? lscpu cat /proc/cpuinfo Architecture: i686 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 42 Stepping: 7 CPU MHz: 2301.000 BogoMIPS: 4589.37 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 3072K For Intel systems, the Vendor ID is - GenuineIntel and for AMD - AuthenticAMD. But they are compatible. It is a bit of an historical artifact in that AMD was the creator of the 64 bit 'long' mode, and later Intel matched that creation. But naming often refers to any 64 bit binary as an AMD/64bit format, usually with the label 'AMD64'. |