Project in Computational Science
Skip, if already completed.
ssh-keygen -t ed25519. Select the default name and choose a password (technically optional).cat ~/.ssh/id_ed25519.pub to reveal your public key. Upload it to github here./proj/sciml/users/your_username_here/ # Open your user directory in the project
git clone git@github.com:AlbinLiljefors/cr4wm.git # Clone the repo
Within the repo top directory (/proj/sciml/users/your_username_here/cr4wm/), create a file called .env and write
export HF_TOKEN=hf_XXXXXXXXXXXXX
Run apptainer build ./berzelius.sif ./berzelius.def to build the container. This may take 5-10 minutes.
cd prod.sbatch cr4wm.sh. This will create an array of jobs.watch squeue -u <your_username>. This will update every 2 seconds.Note: The dataset is predownloaded onto the shared directory /proj/sciml/share/cr4wm/data/. Nothing needs to be done with this.
By default, this will create 20 jobs, running 10 videos ecah. To change the number of jobs, edit this line #SBATCH --array 0-19. To edit the number of videos per job, change STEP=XX.
python -m venv postprocessing
source postprocessing/bin/activate
pip install pandas requests
Run python postprocessing.py to calculate the accuracy. Remeber to activate the enviroment with source postprocessing/bin/activate if not already done.
When done, rename the results folder to something else, i.g. results_n with incrementing n, so the results does not get overwritten by other runs.
Python
97.9%
Shell
2.1%
Project in Computational Science
Skip, if already completed.
ssh-keygen -t ed25519. Select the default name and choose a password (technically optional).cat ~/.ssh/id_ed25519.pub to reveal your public key. Upload it to github here./proj/sciml/users/your_username_here/ # Open your user directory in the project
git clone git@github.com:AlbinLiljefors/cr4wm.git # Clone the repo
Within the repo top directory (/proj/sciml/users/your_username_here/cr4wm/), create a file called .env and write
export HF_TOKEN=hf_XXXXXXXXXXXXX
Run apptainer build ./berzelius.sif ./berzelius.def to build the container. This may take 5-10 minutes.
cd prod.sbatch cr4wm.sh. This will create an array of jobs.watch squeue -u <your_username>. This will update every 2 seconds.Note: The dataset is predownloaded onto the shared directory /proj/sciml/share/cr4wm/data/. Nothing needs to be done with this.
By default, this will create 20 jobs, running 10 videos ecah. To change the number of jobs, edit this line #SBATCH --array 0-19. To edit the number of videos per job, change STEP=XX.
python -m venv postprocessing
source postprocessing/bin/activate
pip install pandas requests
Run python postprocessing.py to calculate the accuracy. Remeber to activate the enviroment with source postprocessing/bin/activate if not already done.
When done, rename the results folder to something else, i.g. results_n with incrementing n, so the results does not get overwritten by other runs.
Python
97.9%
Shell
2.1%