-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
60 lines (36 loc) · 1.39 KB
/
readme.txt
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Setup Instructions
Follow these steps to correctly set up and run the model on a university system.
NOTE: Model may need to be run on cuda servers with current number of parameters and batch size.
## Extract the Code Directory
Ensure the `code/` directory is extracted from the provided archive:
# If provided as a .tar.gz archive
tar -xvzf code.tar.gz
# If provided as a .zip archive
unzip code.zip
## Navigate to the Code Directory
cd code/
## Create and Set Up a Virtual Environment
# Create a directory for the virtual environment
mkdir venv
cd venv
# Initialize a virtual environment
python3 -m venv .
# Navigate back to the code directory
cd ..
# Activate the virtual environment
source venv/bin/activate
## Install Required Dependencies
# Install all required Python packages
pip3 install -r requirements.txt
# If any dependencies fail, ensure you are using Python 3.8+ and have internet access.
## Download the Pretrained Model
To use the model trained for 70 epochs, download the checkpoint from:
[Download Model (.pth)](https://drive.google.com/file/d/1UNCgujhKBsmm_FISzjx0-yHwcGR21787/view?usp=sharing)
Once downloaded, place it inside the `checkpoints/` directory:
# Ensure the checkpoints directory exists
mkdir -p checkpoints
# Move the model file into the checkpoints directory
mv vector_field.pth checkpoints/
## Run Training
# Run the training script
python3 -m main