Morpheus - Pytorch
Project description
Morpheus 1
Implementation of "MORPHEUS-1" from Prophetic AI and "The world’s first multi-modal generative ultrasonic transformer designed to induce and stabilize lucid dreams. "
Installation
You can install the package using pip
pip install morpheus-torch
Usage
-
The input is FRMI and EEG tensors.
-
FRMI shape is (batch_size, in_channels, D, H, W)
-
EEG Embedding is [batch_size, channels, time_samples]
import torch
from morpheus_torch import MorpheusDecoder
model = MorpheusDecoder(
dim=128,
heads=4,
depth=2,
dim_head=32,
dropout=0.1,
num_channels=32,
conv_channels=32,
kernel_size=3,
in_channels=1,
out_channels=32,
stride=1,
padding=1,
ff_mult=4,
)
frmi = torch.randn(1, 1, 32, 32, 32)
eeg = torch.randn(1, 32, 128)
output = model(frmi, eeg)
print(output.shape)
Code Quality 🧹
We providehandy commands inside the Makefile
, namely:
make style
to format the codemake check_code_quality
to check code quality (PEP8 basically)black .
ruff . --fix
License
MIT
Todo
-
Implement the scatter in the end of the decoder to output spatial outputs
-
Implement a full model with the depth of the decoder layers
-
Change all the MHAs to Multi Query Attentions
-
Double check popular brain scan EEG and FRMI AI papers to double check tensor shape
Project details
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
File details
Details for the file morpheus_torch-0.0.4.tar.gz
.
File metadata
- Download URL: morpheus_torch-0.0.4.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 388b56b4b74409f29f49a42f55066552796d8aaa55ef6f654eddc2df3c5b2337 |
|
MD5 | 472bbb6dc19fc727e8dd4db2d8c39a52 |
|
BLAKE2b-256 | 0f68b78890832b99d9365fb45a1b199b476a8b95ca1a5e31e68b564f5e88ef70 |
File details
Details for the file morpheus_torch-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: morpheus_torch-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e63308c26c9eb8f94333a436dd71b9965e11ecb9bd25490fccf0a2568e12121c |
|
MD5 | 5144c6b7198820b081c2648719a1efd1 |
|
BLAKE2b-256 | 9bc59db46aa224f06c5cbecd59bf2c108807d2b80352590a4c5eeb99db34e17e |