Description: Print the numbers from 0 to 9.
0
sudo apt install fonts-vazirmatn
or download it and place it in ~/.local/share/fonts/
or /usr/share/fonts/truetype/
.
mkdir -p ~/.config/fontconfig
nano ~/.config/fontconfig/fonts.conf
# remove ir mirrors | |
sudo sed -i 's|http://.*.ubuntu.com|http://archive.ubuntu.com|g' /etc/apt/sources.list |
export http_proxy="socks5h://127.0.0.1:10808" | |
export https_proxy="socks5h://127.0.0.1:10808" | |
export all_proxy="socks5h://127.0.0.1:10808" |
#pragma region Template | |
// #include <bits/stdc++.h> | |
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <cmath> | |
#include <algorithm> | |
#include <unordered_map> | |
#include <unordered_set> |
import timm | |
# List of models | |
timm.list_models() | |
timm.list_models(pretrained=True) | |
# Create a model | |
model = timm.create_model('resnet18', pretrained=True, num_classes=10) #default=1000 | |
# get the input size of the model |
# get the number of parameters of the model | |
def get_num_params(model): | |
return sum(p.numel() for p in model.parameters()) | |
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 |