Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #51

Merged
merged 13 commits into from
Mar 6, 2024
Merged

Dev #51

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Activate the environment: <br>
### Optional Direct installation <br>
You can also directly install the **face-rhythm** package from PyPI into the environment of your choice. Note that you will still need to download/clone the repository for the notebooks. <br>
##### Option 1: Install from PyPI <br>
**`pip install face-rhythm`**<br>
**`pip install face-rhythm[all]`**<br>
##### Option 2: Install from source <br>
**`pip install -e .[all]`**<br>

Expand Down
30 changes: 19 additions & 11 deletions batch_run/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from face_rhythm import util

path_self, path_script, dir_save, dir_videos, dir_ROIs, name_job, name_slurm, name_env = sys.argv
path_self, path_script, dir_save, dir_videos, path_ROIs, name_job, name_slurm, name_env = sys.argv


# date = '20221011'
Expand All @@ -27,15 +27,16 @@
"steps": [
"load_videos",
"ROIs",
# "point_tracking",
"point_tracking",
"VQT",
# "TCA",
"TCA",
],
"project": {
"directory_project": dir_save,
"overwrite_config": False,
"overwrite_config": True,
"update_project_paths": True,
"initialize_visualization": False,
"use_GPU": False,
"random_seed": 0,
"verbose": 2,
},
"figure_saver": {
Expand Down Expand Up @@ -72,7 +73,7 @@
"ROIs": {
"initialize":{
"select_mode": "file",
"path_file": dir_ROIs,
"path_file": path_ROIs,
"verbose": 2,
},
"make_rois": {
Expand Down Expand Up @@ -167,6 +168,7 @@
"init": "random",
"svd": "truncated_svd",
"tol": 1e-09,
"random_state": 0,
"verbose": True,
},
"verbose": 2,
Expand Down Expand Up @@ -219,7 +221,9 @@

# with open(str(Path(dir_save) / 'parameters_batch.json')) as f:
# test = json.load(f)


## change permissions of the data files
[os.system(f"chmod -R 777 {p}") for p in [dir_save, dir_videos, path_ROIs]]

## run batch_run function
paths_scripts = [path_script]
Expand All @@ -237,11 +241,12 @@
#SBATCH --job-name={name_slurm}
#SBATCH --output={path}
#SBATCH --constraint=intel
#SBATCH --partition=short
#SBATCH -c 8
#SBATCH --gres=gpu:1,vram:23G
#SBATCH --partition=gpu_requeue
#SBATCH -c 4
#SBATCH -n 1
#SBATCH --mem=48GB
#SBATCH --time=0-00:30:00
#SBATCH --mem=36GB
#SBATCH --time=0-0:30:00

unset XDG_RUNTIME_DIR

Expand All @@ -266,6 +271,9 @@
# SBATCH --partition=gpu_quad
# SBATCH --gres=gpu:1,vram:31G

# SBATCH --constraint=intel
# SBATCH --partition=short


util.batch_run(
paths_scripts=paths_scripts,
Expand Down
Loading
Loading