-
Notifications
You must be signed in to change notification settings - Fork 1
/
tldr.sh
executable file
·39 lines (32 loc) · 1.13 KB
/
tldr.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# ___ __________________ ___________
# / _/__ ____ / __/ ___/ _/ __/ |/ / ___/ __/
# / _/ _ \/ __/ _\ \/ /___/ // _// / /__/ _/
# /_/ \___/_/ /___/\___/___/___/_/|_/\___/___/
#
# Author : Benjamin Blundell - [email protected]
#
# tldr.sh - create a miniconda instance called holly,
# download all the required packages, train a
# network and generate some outputs.
RED='\033[0;31m'
YELLOW='\033[0;33m'
GREEN='\033[0;32m'
NC='\033[0m' # No Colour
echo -e "\U1F69A " ${GREEN}CREATING MINICONDA ENVIRONMENT${NC} "\U1F69A"
# Create miniconda environment
conda create -n holly python
conda activate holly
pip install -r requirements.txt # -y doesnt always work sadly
mkdir experiment
echo -e "\U1F3CB " ${RED}TRAINING${NC} "\U1F3CB"
# Start the training
python3 train.py --obj ./objs/teapot_large.obj \
--train-size 40000 --lr 0.0004 --savedir experiment \
--num-points 230 --epochs 40 \
--sigma-file ./run/sigma.csv
# Generate the final stats
cd run
./generate_stats.sh -i ../experiment -g ../objs/teapot_large.obj
cd ..
echo "${YELLOW}Take a look in the experiment directory for the new outputs.${NC}"