refer to code:
.
..
It download all files under the sdxl_models folder.
Thank you.
refer to code:
.
..
It download all files under the sdxl_models folder.
Thank you.
refer to code
.
..
Thank you.
other option is
file_path = hf_hub_download(repo_id=repo_id, filename=file, cache_dir=local_directory, force_download=True)
simply check below code and example result.
.
..
Thank you.
Error in AWS bedrock like:
Unknown parameter in retrievalConfiguration.vectorSearchConfiguration: "overrideSearchType", must be one of: numberOfResults
Solution
Update boto3 sdk as latest one.
The parameters changed on 2024-03-27.
refer to here: https://awsapichanges.com/archive/changes/cd42c1-bedrock-agent-runtime.html
Thank you!
Open powershell by admin
and put this on terminal
> net stop wuauserv #stop service update
> net stop bits #stop bits
> Remove-Item -Path "C:\Windows\SoftwareDistribution\Download\*" -Recurse -Force
> net start wuauserv #restart
> net start bits #restart
You can do something else after stop bits, service update.
Thank you.
Firstly, install opencv
code for invisible water mark embedding
retrive code
This is my cmd for training lora with kohya-ss/sd-scripts
python -m accelerate.commands.launch --num_cpu_threads_per_process=8 \
...
--enable_bucket \
...
--train_data_dir="/images/" \
--output_dir="models/loras" \
--logging_dir="./logs" \
--log_prefix=silostyle \
--resolution=512,512 \
--network_module=networks.lora \
...
And I met this error
> No data found.
...
0 train images with repeating
..
One thing to check is folder name.
Your images and caption txt file has sub folder and the folder name should have "number_title"
correct : /images/1_files, /images/2_files
wrong : /images/files, /images/0_files
I am figuring out why kohya has such a rule..
Thank you.
Image Tagging workflow for comfyUI
More details:
Thank you!
> lsof -i :8188
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Code\x20H 76433 ccxxxxx 46u IPv4 0xc8a9187a02c84768 0t0 TCP localhost:8188 (LISTEN)
> kill -9 76433
To help with resolving complex dependency graphs, you can use tools like pip-tools or poetry which offer more robust dependency resolution mechanisms than pip's default resolver.
Pip-tools:
pip install pip-tools
pip-compile --output-file requirements.txt
pip-sync requirements.txt
Poetry:
pip install poetry
poetry init
poetry add <package-name>
.
# Warning: This will destroy your current history.
# Ensure that you understand the consequences before running these commands.
# Go to your repository directory
cd path/to/your/repository
# Create a new initial commit
git checkout --orphan newBranch
git add -A
git commit -m "Initial commit"
# Delete the main branch
git branch -D main
# Rename the current branch to main
git branch -m main
# Force push to overwrite the history on the remote repository
git push --force origin main
..
1.
sudo apt update
sudo apt install cmake
Put this cmd.
git ls-files \
| xargs du -ch \
| grep total$
add one more class
save image to png
.
..
refer to code for your scratch
:
make different port number
Window
>.\python_embeded\python.exe -s ComfyUI\main.py --port 8189 --windows-standalone-build
>sudo lsof -i :8188
python 231134 mare 45u IPv4 2074469 0t0 TCP localhost:8188->localhost:42132 (CLOSE_WAIT)
python 231134 mare 46u IPv4 2105633 0t0 TCP localhost:8188->localhost:57870 (CLOSE_WAIT)
python 231134 mare 47u IPv4 2074473 0t0 TCP localhost:8188->localhost:42160 (CLOSE_WAIT)
python 231134 mare 48u IPv4 2103693 0t0 TCP localhost:8188->localhost:57886 (CLOSE_WAIT)
> kill -9 231134
๐๐ป♂️
Navigate to your SSH directory
cd ~/.ssh
List the RSA public key files:
Create a New Swap File
sudo fallocate -l 2G /swapfile2
sudo chmod 600 /swapfile2
sudo mkswap /swapfile2
sudo swapon /swapfile2
Make the swap file permanent
Check Current swap status
sudo swapon --show
I can stop docker after put two commend.
> sudo systemctl stop docker
[sudo] password for mare:
Warning: Stopping docker.service, but it can still be activated by:
docker.socket
> sudo systemctl stop docker.socket
I hope it's helpful to you.
Thank you.
๐๐ป♂️
Let's say we have channel x Length signal data ex)EEG (electroencephalogram) or time series data.
We might wonder what dominant Hz is there.
The code analysis this question and return 5 top dominant frequency.
.
..
There are same eeg_id in data, but we can split it based on same id to train, val using GroupShuffleSplit.
Refer to code:
.
..
Thank you.
๐๐ป♂️