Skip to content

Commit

Permalink
Update update_models.sh
Browse files Browse the repository at this point in the history
Resolves issue #15
  • Loading branch information
GuitarML authored Oct 11, 2021
1 parent 93073d5 commit ca1f413
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions scripts/update_models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,24 @@

rpi_ip_address=127.0.0.1 # Update this field with the Raspberry Pi's IP address


# Uncomment the appropriate path for your computer:

# Directory paths for host computer (json models and IRs)
host_model_path=~/Documents/GuitarML/NeuralPi/tones #Typical Mac/Linux Path (shouldn't need to change)
host_ir_path=~/Documents/GuitarML/NeuralPi/irs #Typical Mac/Linux Path (shouldn't need to change)


# Directory paths for Raspberry Pi (json models and IRs)
rpi_model_path=/home/mind/Documents/GuitarML/NeuralPi/tones # Rpi with Elk OS Path (shouldn't need to change)
rpi_ir_path=/home/mind/Documents/GuitarML/NeuralPi/irs # Rpi with Elk OS Path (shouldn't need to change)

#############################################################################
echo "Copying all models from local computer to Rpi.."
scp $host_model_path/*.json root@$rpi_ip_address:$rpi_model_path/
scp $host_model_path/*.json root@$rpi_ip_address:$rpi_model_path/

echo "Copying all IRs from local computer to Rpi.."
scp $host_ir_path/*.json root@$rpi_ip_address:$rpi_ir_path/
scp $host_ir_path/*.wav root@$rpi_ip_address:$rpi_ir_path/


echo "Copying all models from Rpi to local computer.."
scp root@$rpi_ip_address:$rpi_model_path/*.wav $host_model_path/
scp root@$rpi_ip_address:$rpi_model_path/*.json $host_model_path/

echo "Copying all IRs from Rpi to local computer.."
scp root@$rpi_ip_address:$rpi_ir_path/*.wav $host_ir_path/
scp root@$rpi_ip_address:$rpi_ir_path/*.wav $host_ir_path/

0 comments on commit ca1f413

Please sign in to comment.