- Everything
- WOX
- Python
- VS Code
- WSL 2 (zsh, neovim configs)
- Chrome
- Office
- Davinci
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
print("'Hello Gist") |
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
from tensorflow.python.client import device_lib | |
device_lib.list_local_devices() | |
import tensorflow as tf | |
tf.test.gpu_device_name() | |
!nvidia-smi | |
!cat /proc/meminfo |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false | |
}, |
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
# Set `HF_TOKEN` environment variable | |
# !! Not in your code !! | |
# | |
# in jupyter nb: | |
# %env HF_TOKEN=hfdjakslfhjasdlkfhajslfhdasjl | |
# | |
# in bash: | |
# HF_TOKEN=hfdjakslfhjasdlkfhajslfhdasjl | |
# | |
# using colab secrets tab |
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
#! /bin/sh | |
git clone -b v2.1 https://github.com/camenduru/stable-diffusion-webui | |
git clone https://huggingface.co/embed/negative /content/stable-diffusion-webui/embeddings/negative | |
git clone https://huggingface.co/embed/lora /content/stable-diffusion-webui/models/Lora/positive | |
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth -d /content/stable-diffusion-webui/models/ESRGAN -o 4x-UltraSharp.pth | |
wget https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py -O /content/stable-diffusion-webui/scripts/run_n_times.py | |
git clone -b v2.1 https://github.com/camenduru/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui | |
git clone -b v2.1 https://github.com/camenduru/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser | |
git clone -b v2.1 https://github.com/camenduru/stable-diffusion-webui-huggin |
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
پکمن,تیر و کمان,سیب,سینه,ناخن,گردباد,یوتوب,میکی موس,رعد و برق,چراغ راهنمایی,گل آفتاب گردان,هری پاتر,ددپول,باب اسفنجی,عیسی مسیح,برج ایفل,ژاپن,باسن,رودخانه,خطکش,آب,قاشق,حامله,کاکتوس,آمریکا,نیوزلند,بتمن,گربه,سگ,روباه,شیر,نوستراداموس,دماغ,پپسی,سامسونگ,یویو,رز,در,تیر,باروت,سیبیل,کانادا,ناسا,زرد,اخم مرغ,نیمرو,املت,آدم برفی,ربات,شاخه,شبکه,لئوناردو دیکاپریو,تکشاخ,مونالیزا,آینه,شمشیر,شیشه,همزن,اجاق,گریل,باگت,زورو,انسان,حافظ,سعدی,فردوسی,خمینی,شرلوک هولمز,مرد عنکبوتی,قسطنطنیه,شیراز,افغانستان,هندی,غلامرضاتختی,آرش کمانگیر,علی دایی, |
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
git clone -b v2.4 https://github.com/camenduru/stable-diffusion-webui | |
git clone https://huggingface.co/embed/negative /content/stable-diffusion-webui/embeddings/negative | |
git clone https://huggingface.co/embed/lora /content/stable-diffusion-webui/models/Lora/positive | |
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth -d /content/stable-diffusion-webui/models/ESRGAN -o 4x-UltraSharp.pth | |
wget https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py -O /content/stable-diffusion-webui/scripts/run_n_times.py | |
git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui | |
git clone https://github.com/camenduru/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser | |
git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-w |
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
# get the number of parameters of the model | |
def get_num_params(model): | |
return sum(p.numel() for p in model.parameters()) | |
OlderNewer