Upload folder using huggingface_hub
Browse files- README.md +8 -8
- __pycache__/config.cpython-311.pyc +0 -0
- __pycache__/model.cpython-311.pyc +0 -0
- infer.PNG +0 -0
README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
## Usage
|
|
|
|
|
|
|
| 2 |
|
| 3 |
```python
|
| 4 |
import torch
|
| 5 |
-
from model import MetalAmpNet
|
| 6 |
|
| 7 |
-
# Load checkpoint
|
| 8 |
ckpt = torch.load("metal_amp_v2.pt", map_location="cpu")
|
| 9 |
-
|
| 10 |
-
# Initialize model
|
| 11 |
model = MetalAmpNet()
|
| 12 |
model.load_state_dict(ckpt["model"])
|
| 13 |
model.eval()
|
| 14 |
-
|
| 15 |
-
# Example inference
|
| 16 |
-
# x: torch.Tensor of shape [1, 1, window_size] (single channel)
|
| 17 |
-
# y = model(x)
|
| 18 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
## Usage
|
| 2 |
+
This is a model I trained to mimic a JCM 800 AMP. It doesn't sound very good, but as a first pass, I'm glad I have it.
|
| 3 |
+
|
| 4 |
|
| 5 |
```python
|
| 6 |
import torch
|
| 7 |
+
from model import MetalAmpNet
|
| 8 |
|
|
|
|
| 9 |
ckpt = torch.load("metal_amp_v2.pt", map_location="cpu")
|
|
|
|
|
|
|
| 10 |
model = MetalAmpNet()
|
| 11 |
model.load_state_dict(ckpt["model"])
|
| 12 |
model.eval()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
```
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
## COMING SOON
|
| 17 |
+
You can look at `infer.py`, `model.py` and `config.py` for deep-dive.
|
| 18 |
+

|
__pycache__/config.cpython-311.pyc
ADDED
|
Binary file (426 Bytes). View file
|
|
|
__pycache__/model.cpython-311.pyc
ADDED
|
Binary file (1.88 kB). View file
|
|
|
infer.PNG
ADDED
|
|