UniFault-tiny / README.md
bojian1's picture
Point inference instructions to FreqFault
08e9665 verified
|
Raw History Blame Contribute Delete
1.53 kB
---
library_name: pytorch
pipeline_tag: feature-extraction
tags:
- vibration
- fault-diagnosis
- phmfd
- safetensors
---
# UniFault-tiny
PHMFD pretrained feature extractor exported from the local main-branch pretraining log.
This is the PHMFD implementation of unifault, not an upstream official checkpoint.
- Training seed: 42; checkpoint epoch: 5.
- Feature dimension: 128.
- Input length: 1024; resizing: `resample`.
- Per-channel normalization: `sample_minmax`.
- Pretraining-only heads and optimizer state are excluded. No fault-label classifier is included.
- Source checkpoint, SHA256 and source code commit: see `provenance.json`.
- All exported encoder tensors load strictly. Features and preprocessing were compared with the main-branch implementation (maximum feature error: 0).
Use the [FreqFault repository](https://github.com/Bojian-Chen/FreqFault):
```bash
python inference.py --model-id bojian1/UniFault-tiny --revision seed-42 --input samples.npy --output features.npz --seed 42
```
`main` defaults to training seed 42; `seed-42`, `seed-43`, and `seed-44` select training checkpoints.
The CLI `--seed` controls inference randomness, independently of the training seed.
TF-ProFM retains random patch sampling; reproducibility requires the same seed, device,
batch size and input order. UniFault returns mean-pooled token features.
Artifacts contain only inference configuration and safetensors weights; load using
`from model import load_model, UniFreqProcessor` from FreqFault, not Transformers AutoModel.