Skip to content

Instantly share code, notes, and snippets.

View timnetworks's full-sized avatar

Timofey Shpirnyy timnetworks

View GitHub Profile
147.185.132.231
109.205.211.123
165.154.206.139
167.94.145.20
198.235.24.195
147.185.133.230
167.94.146.30
162.216.149.17
152.32.150.117
79.124.40.142
@timnetworks
timnetworks / textual_inversion.py
Last active June 16, 2024 02:25
modules/textual_inversion/textual_inversion.py
## fixes the following error:
## *** Error verifying pickled file from /home/user/stable-diffusion-webui/embeddings/embedding.pt
## *** The file may be malicious, so the program is not going to read it.
## *** You can skip this check with --disable-safe-unpickle commandline argument.
## on lines 64 - 71 of textual_inversion.py
torch.save(embedding_data, filename, _use_new_zipfile_serialization=False)
if shared.opts.save_optimizer_state and self.optimizer_state_dict is not None:
optimizer_saved_dict = {
@timnetworks
timnetworks / .bash_prompt
Created June 14, 2024 23:43
Bash Profile
# create .bash_prompt file in your home directory
# Define some basic colors using tput (8-bit color: 256 colors)
red="\[$(tput setaf 160)\]"
bright_red="\[$(tput setaf 196)\]"
light_purple="\[$(tput setaf 60)\]"
orange="\[$(tput setaf 172)\]"
blue="\[$(tput setaf 21)\]"
light_blue="\[$(tput setaf 80)\]"
bold="\[$(tput bold)\]"