lora-inspector
LoRA (Low-Rank Adaptation) inspector for Stable Diffusion
File Explorer
- FUNDING.yml
- .gitignore
- LICENSE
- lora-inspector.py
- poetry.lock
- pyproject.toml
- README.md
- ruff.toml
- update_metadata.py
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
black
View Details ▼
black
Format Python code automatically.
See also: `ruff`.
black {{path/to/file_or_directory}}
Auto-format a file or entire directory:
black {{[-c|--code]}} "{{code}}"
Format the code passed in as a string:
black --check {{path/to/file_or_directory}}
Show whether a file or a directory would have changes made to them if they were to be formatted:
pip install
View Details ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
python
View Details ▼
python
Python language interpreter.
python
Start a REPL (interactive shell):
python {{path/to/file.py}}
Execute a specific Python file:
python -i {{path/to/file.py}}
Execute a specific Python file and start a REPL:
tqdm
View Details ▼
tqdm
Show progress over time of a command.
{{seq 10000000}} | tqdm | {{command}}
Show iterations per second and use `stdout` afterwards:
{{seq 10000000}} | tqdm --total {{10000000}} | {{command}}
Create a progress bar:
zip {{[-r|--recurse-paths]}} {{path/to/archive.zip}} {{path/to/directory}} | tqdm --total $(find {{path/to/directory}} | wc {{[-l|--lines]}}) --unit files --null
Create an archive out of a directory and use the file count of that directory to create a progress bar:
venv
View Details ▼
venv
Create lightweight virtual environments in Python.
python -m venv {{path/to/virtual_environment}}
Create a Python virtual environment:
{{[.|source]}} {{path/to/virtual_environment}}/bin/activate
Activate the virtual environment (Linux and macOS):
{{path\to\virtual_environment}}\Scripts\activate.bat
Activate the virtual environment (Windows):
