./generate.zsh \
--model-dir keras-gabc-model-deep \
--epochs 50 \
--patience 8 \
--context 64 \
--embedding 256 \
--mode-embedding 48 \
--units 768 \
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
| #!/usr/bin/env zsh | |
| # Generate a complete GABC score containing random long melismatic syllables | |
| # from a local GregoBase corpus. | |
| # | |
| # Usage: | |
| # ./random_melismas.zsh [-n count] [path-to-gregobase-corpus] > melismas.gabc | |
| # | |
| # The default corpus is "gregobasecorpus-v0" next to this script. By default, | |
| # ten melismas are selected, each from a distinct source file, and two are |
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
| #!/usr/bin/env zsh | |
| # Generate a complete GABC score containing random excerpts from a local | |
| # GregoBase corpus. | |
| # | |
| # Usage: | |
| # ./random-gregobase-melody.zsh [path-to-gregobase-corpus] > excerpts.gabc | |
| # | |
| # If no corpus path is supplied, the script expects "gregobasecorpus-v0" next | |
| # to this script. The path must contain a "gabc" directory of source scores. |
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 | |
| cd | |
| cd art | |
| sudo chown rb build | |
| sudo rm -r build | |
| mkdir build | |
| cd build | |
| git checkout master | |
| cmake -DCMAKE_BUILD_TYPE="Release" \ | |
| -DCMAKE_OSX_ARCHITECTURES=arm64 \ |
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
| intel: | |
| curl -L https://github.com/Benitoite/raw-test/releases/download/3FR/B0001131.3FR -o B0001131.3FR ; curl -L https://github.com/Benitoite/raw-test/releases/download/3FR/B0001131.3FR.pp3 -o B0001131.3FR.pp3 ; num=$(sysctl -n hw.physicalcpu) ; sockets=1 ; total_threads=$((num * sockets)) ; name=$(system_profiler SPHardwareDataType | grep 'Processor Name:' | sed 's/Processor Name: *//' | cut -c 7-) ; mhz=$(system_profiler SPHardwareDataType | grep 'Speed:' | awk '{print $3}') ; proc=$(cat ./AboutThisBuild.txt | grep 'Processor') ; echo "\`\`\`" ; echo "================================" ; echo "Available threads = $total_threads / CPU = $name / $mhz GHz / Target = $proc" ; for (( threads = 2; threads <= total_threads; threads *= 2 )); do export OMP_NUM_THREADS=$threads ; total_time=0.0 ; n=11 ; for file in B0001131.3FR ; do time_sum=0.0 ; for (( i = 0; i < n; i++ )); do start=$(( $(date +%s%N)/1000000 )) ; rawtherapee-cli -j -s -Y -c ./$file &> /dev/null ; finished=$(( $(date +%s%N) / 1000000 )) ; time_sum=$ |
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
| intel: | |
| git clone https://github.com/Benitoite/raw-test ./raw-test ; num=$(sysctl -n hw.physicalcpu) ; sockets=1 ; total_threads=$((num * sockets)) ; name=$(system_profiler SPHardwareDataType | grep 'Processor Name:' | sed 's/Processor Name: *//' | cut -c 7-) ; mhz=$(system_profiler SPHardwareDataType | grep 'Speed:' | awk '{print $3}') ; proc=$(cat ./AboutThisBuild.txt | grep 'Processor') ; echo "\`\`\`" ; echo "================================" ; echo "Available threads = $total_threads / CPU = $name / $mhz GHz / Target = $proc" ; for (( threads = 2; threads <= total_threads; threads *= 2 )); do export OMP_NUM_THREADS=$threads ; total_time=0.0 ; n=5 ; for file in typewriter.CR2 naturalbridges.CR2 beachcabin.ARW; do time_sum=0.0 ; for (( i = 0; i < n; i++ )); do start=$(( $(date +%s%N)/1000000 )) ; rawtherapee-cli -j -s -Y -c ./raw-test/$file &> /dev/null ; finished=$(( $(date +%s%N) / 1000000 )) ; time_sum=$(( $time_sum + $finished - $start )) ; done ; avg_time=$(( $time_sum / $n )) ; total_time=$(( $total_t |
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
| milliseconds | CPU | microcode | MHz | cores | |
|---|---|---|---|---|---|
| 44807 | Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz | skylake-raptorlake | 3408 | 2 | |
| 30655 | Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz | skylake-raptorlake | 3408 | 4 | |
| 26047 | Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz | skylake-raptorlake | 3408 | 8 | |
| 45756 | Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz | sandybridge-ivybridge | 3408 | 2 | |
| 30946 | Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz | sandybridge-ivybridge | 3408 | 4 | |
| 26819 | Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz | sandybridge-ivybridge | 3408 | 8 | |
| 45781 | Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz | x86 | 3408 | 2 | |
| 30916 | Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz | x86 | 3408 | 4 | |
| 26355 | Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz | x86 | 3408 | 8 |
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 https://github.com/Benitoite/raw-test ./raw-test ; num=$(nproc) ; sockets=$(lscpu | grep 'Socket(s):' | awk '{print $2}') ; total_threads=$((num * sockets)) ; name=$(lscpu | grep 'Model name:' | sed 's/Model name: *//') ; mhz=$(lscpu | grep 'CPU max MHz:' | awk '{print $4}') ; proc=$(cat ./AboutThisBuild.txt | grep 'Processor') ; echo "\`\`\`" ; echo "================================" ; echo "Available threads = $total_threads / CPU = $name / $mhz MHz / Target = $proc" ; for (( threads = 2; threads <= total_threads; threads *= 2 )); do export OMP_NUM_THREADS=$threads ; total_time=0.0 ; n=5 ; for file in typewriter.CR2 naturalbridges.CR2 beachcabin.ARW; do time_sum=0.0 ; for (( i = 0; i < n; i++ )); do start=$(( $(date +%s%N)/1000000 )) ; rawtherapee-cli -j -s -Y -c ./raw-test/$file &> /dev/null ; finished=$(( $(date +%s%N) / 1000000 )) ; time_sum=$(( "$time_sum + $finished - $start" )) ; done ; avg_time=$(( "$time_sum / $n" )) ; total_time=$(( "$total_time + $avg_time" )) ; done ; echo "$(printf '%. |
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 https://github.com/Benitoite/raw-test .\raw-test; $processor = Get-ComputerInfo -Property CsProcessors; $sockets = (Get-CimInstance Win32_Processor).SocketDesignation.Count ; $num = ($processor.CsProcessors | findstr NumberOfLogicalProcessors).Split(' ')[2]; $num *= $sockets ; $name = ($processor.CsProcessors | findstr Name).Split(':')[-1]; $mhz = ($processor.CsProcessors | findstr Max).Split(':')[-1]; $proc = (cat .\AboutThisBuild.txt | findstr Processor); echo "``````" "================================"; echo "Available threads = $num / CPU =$name / $mhz MHz / Target = $proc"; for ($threads = 2; $threads -le $num; $threads *= 2) { $env:OMP_NUM_THREADS=$threads; $t = 0; $n = 5; $x = 0; for ($i = 0; $i -lt $n; $i++) { $x+=(Measure-Command { .\rawtherapee-cli.exe -j -s -Y -c .\raw-test\typewriter.CR2 } | findstr Ticks).Split(': ')[-1] }; $t+=($x/$n); $x = 0; for ($i = 0; $i -lt $n; $i++) { $x+=(Measure-Command { .\rawtherapee-cli.exe -j -s -Y -c .\raw-test\naturalbridges.CR2 } | findstr Ticks).Split( |
NewerOlder