Instructions to use silicobio/hoike with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use silicobio/hoike with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("silicobio/hoike", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,4 +9,30 @@ tags:
|
|
| 9 |
---
|
| 10 |
|
| 11 |
|
| 12 |
-
# Hōʻike: A Joint-Embedding Predictive Architecture for Transcriptome Data Generation with Diffusion Models
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
|
| 12 |
+
# Hōʻike: A Joint-Embedding Predictive Architecture for Transcriptome Data Generation with Diffusion Models
|
| 13 |
+
|
| 14 |
+
<h3 align="right">Silico Biosciences</h3>
|
| 15 |
+
|
| 16 |
+
Visit the GitHub repository for the framework code: https://github.com/silicobio/hoike
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
## Usage
|
| 20 |
+
|
| 21 |
+
```py
|
| 22 |
+
## 1. Look up the condition samples for a tissue that exists in the normal reference set.
|
| 23 |
+
user_target_tissue = "Skin"
|
| 24 |
+
condition_subset = dataset.condition_df[dataset.condition_df["tissue_type"] == user_target_tissue].reset_index(drop=True)
|
| 25 |
+
normal_baseline_array = dataset.normal_profiles[user_target_tissue]
|
| 26 |
+
|
| 27 |
+
## 2. Generate with sampling-time normalization consistent with diffusion training.
|
| 28 |
+
generated_df = generate_synthetic_condition_data_consistent(
|
| 29 |
+
normal_profile=normal_baseline_array,
|
| 30 |
+
jepa=jepa_model,
|
| 31 |
+
diffusion=diff_model,
|
| 32 |
+
scheduler=scheduler,
|
| 33 |
+
gene_cols=dataset.gene_cols,
|
| 34 |
+
num_samples=2500,
|
| 35 |
+
value_cap=condition_value_cap,
|
| 36 |
+
sampling_noise_scale=1.1,
|
| 37 |
+
)
|
| 38 |
+
```
|