A package for training and testing CROM weights
Project description
CROM_offline_training
This repository contains the offline training pipeline for CROM
Prerequisites
We assume a fresh install of Ubuntu 20.04. For example,
docker run --gpus all --shm-size 128G -it --rm -v $HOME:/home/ubuntu ubuntu:20.04
Install python and pip:
apt-get update
apt install python3-pip
Dependencies
From the project directory install through pip:
pip install .
Alternatively, you may install via PyPI directly
pip install run_crom
Usage
Training
run_crom -mode train -d [data directory] -initial_lr [learning rate constant] -epo [epoch sequence] -lr [learning rate scaling sequence] -batch_size [batch size] -lbl [label length] -scale_mlp [network width scale] -ks [kernel size] -strides [stride size] [-siren_dec] [-dec_omega_0 [decoder siren omega]] [-siren_enc] [-enc_omega_0 [encoder siren omega]]
For example
run_crom -mode train -d /home/ubuntu/sim_data/libTorchFem_data/extreme_pig/test_tension011_pig_long_l-0.01_p2d -lbl 6 -lr 1 0.1 0.05 0.02 0.01 -epo 3000 3000 3000 3000 3000 -siren_dec -batch_size 4 -scale_mlp 64 -dec_omega_0 30 --gpus 1
Testing
run_crom -mode test -m [path to .ckpt file to test]
You may also provide any built-in flags for PytorchLightning's Trainer
Data
Simulation data should be stored in a directory with the following structure. For example,
├───sim_data_parent_directory (contain multiple simulation sequences; each entry in this directory is a simulation sequence)
├───sim_seq_ + suffix
├───h5_f_0000000000.h5
├───h5_f_0000000001.h5
├───...
├───....
See SimulationState under simulation.py for the structure of the h5 file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file run_crom-1.0.0.tar.gz.
File metadata
- Download URL: run_crom-1.0.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.28.1 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.64.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54142632641144dda4cdd827153c96eeb6a99e991e4f022fb18a1b06d2ecdbed
|
|
| MD5 |
9c5369651887e04fadeab9eab15227cd
|
|
| BLAKE2b-256 |
f3fc607deed614776c581384ecfdc9f50cadebde13190313e60d992ddaebd68a
|
File details
Details for the file run_crom-1.0.0-py3-none-any.whl.
File metadata
- Download URL: run_crom-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.28.1 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.64.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8674a2565b4fd82dea79f5a12ba3029f76d768078fc57665487ecbfe5daab007
|
|
| MD5 |
a8916216e2f32267aeda179025789d7d
|
|
| BLAKE2b-256 |
b6f2c1230865a3afde4cd002a6c238a837b8b4ba5b5b9df29bb75d32a948560b
|