← 开源
bbaaii

DreamDiffusion

Implementation of “DreamDiffusion: Generating High-Quality Images from Brain EEG Signals”

Model DevelopmentArchitectureDomain-specific trainingPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
660
Star
80
Fork
+0
本周
1
贡献者
创建于 2023-06-30 · 更新于 2026-10-09 · 今日第 15356 名
主要开发者
bbaaii

bbaaii/DreamDiffusion 排名第 15,356,有 660 个星标。

同类别比较

bbaaii/DreamDiffusion 排名第 15,356,此处有 8 个同类条目;v-iashin/video_features 排名第 15,360。

同类别比较
名称排名指标
alexiglad/EBT15,342
语言:
Python
星标数:
661
分叉数:
92
ali-vilab/Wan-Move15,343
语言:
Python
星标数:
661
分叉数:
37
简介:
[NeurIPS 2025] Wan-Move: Motion-controllable Video Generation via Latent Trajectory Guidance
appliedAI-Initiative-old/orb_slam_2_ros15,344
语言:
C++
星标数:
661
分叉数:
290
简介:
A ROS implementation of ORB_SLAM2
arnoweng/CheXNet15,345
语言:
Python
星标数:
661
分叉数:
237
简介:
A pytorch reimplementation of CheXNet
v-iashin/video_features15,360
语言:
Python
星标数:
660
分叉数:
112
简介:
Extract video features from raw videos using multiple GPUs. We support RAFT flow frames as well as S3D, I3D, R(2+1)D, VGGish, CLIP, and TIMM models.
yzhao062/combo15,361
语言:
Python
星标数:
660
分叉数:
105
简介:
(AAAI' 20) A Python Toolbox for Machine Learning Model Combination
MorvanZhou/pytorch-A3C15,365
语言:
Python
星标数:
659
分叉数:
142
简介:
Simple A3C implementation with pytorch + multiprocessing
NVIDIA-AI-IOT/CUDA-PointPillars15,366
语言:
Python
星标数:
659
分叉数:
185
简介:
A project demonstrating how to use CUDA-PointPillars to deal with cloud points data from lidar.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Architecture,Domain-specific training
关键词Biomedical, Embeddings, Image production, Multimodal
星标数660
分叉数80
贡献者1
创建日期2023-06-30
更新日期2026-10-09
1 天星标数0
7 天星标数0
排名15,356
上次排名15,172
排名变化-184
7 天星标排名14,951
上次 7 天星标排名11,071
7 天星标排名变化-3,880
总星标排名15,567
上次总星标排名15,539
总星标排名变化-28
README 摘录

DreamDiffusion: Generating High-Quality Images from Brain EEG Signals Update **[2025. Since they were only tested on the previous server, they were not noticed and have been corrected. The pre-trained encoder does not need to be loaded separately during inference DreamDiffusion **DreamDiffusion** is a framework for generating high-quality images from brain EEG signals. This document introduces the precesedures required for replicating the results in *DreamDiffusion: Generating High-Quality Images from Brain EEG Signals* Abstract This paper introduces DreamDiffusion

, a novel method for generating high-quality images directly from brain electroencephalogram (EEG) signals, without the need to translate thoughts into text. DreamDiffusion leverages pre-trained text-to-image models and employs temporal masked signal modeling to pre-train the EEG encoder for effective and robust EEG representations. Additionally, the method further leverages the CLIP image encoder to provide extra supervision to better align EEG, text, and image embeddings with limited EEG-image pairs. Overall, the proposed method overcomes the

challenges of using EEG signals for image generation, such as noise, limited information, and individual differences, and achieves promising results. Quantitative and qualitative results demonstrate the effectiveness of the proposed method as a significant step towards portable and low-cost "thoughts-to-image", with potential applications in neuroscience and computer vision. Overview The **datasets** folder and **pretrains** folder are not included in this repository. Please download them from eeg and put them in the root directory of this repository as

shown below. We also provide a copy of the Imagenet subset imagenet. For Stable Diffusion, we just use standard SD1. You can download it from the official page of Stability. File path | Description Environment setup Create and activate conda environment named from the Generating Images with Trained Checkpoints Run this stage with our provided checkpoints: Here we provide a checkpoint ckpt, which you may want to try. Acknowledgement This code is built upon the publicly available code Mind-vis and

StableDiffusion. Thanks these authors for making their excellent work and codes publicly available. Citation ## Please cite the following paper if you use this repository in your reseach. ` @article{bai2023dreamdiffusion, title={DreamDiffusion: Generating High-Quality Images from Brain EEG Signals}, author={Bai, Yunpeng and Wang, Xintao and Cao, Yanpei and Ge, Yixiao and Yuan, Chun and Shan, Ying}, journal={arXiv preprint arXiv:2306.

常见问题

记录了多少星标和分叉?

bbaaii/DreamDiffusion 有 660 个星标和 80 个分叉。

仓库排名是多少?

bbaaii/DreamDiffusion 排名第 15,356。

记录的语言和类别是什么?

bbaaii/DreamDiffusion 有 660 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

bbaaii/DreamDiffusion 与 v-iashin/video_features 比较,后者排名第 15,360,有 660 个星标。

README

DreamDiffusion: Generating High-Quality Images from Brain EEG Signals

Update

[2025.9.30] Some paths were set incorrectly. Since they were only tested on the previous server, they were not noticed and have been corrected. The pre-trained encoder does not need to be loaded separately during inference

DreamDiffusion

DreamDiffusion is a framework for generating high-quality images from brain EEG signals. This document introduces the precesedures required for replicating the results in DreamDiffusion: Generating High-Quality Images from Brain EEG Signals

Abstract

This paper introduces DreamDiffusion, a novel method for generating high-quality images directly from brain electroencephalogram (EEG) signals, without the need to translate thoughts into text. DreamDiffusion leverages pre-trained text-to-image models and employs temporal masked signal modeling to pre-train the EEG encoder for effective and robust EEG representations. Additionally, the method further leverages the CLIP image encoder to provide extra supervision to better align EEG, text, and image embeddings with limited EEG-image pairs. Overall, the proposed method overcomes the challenges of using EEG signals for image generation, such as noise, limited information, and individual differences, and achieves promising results. Quantitative and qualitative results demonstrate the effectiveness of the proposed method as a significant step towards portable and low-cost "thoughts-to-image", with potential applications in neuroscience and computer vision.

Overview

The datasets folder and pretrains folder are not included in this repository. Please download them from eeg and put them in the root directory of this repository as shown below. We also provide a copy of the Imagenet subset imagenet.

For Stable Diffusion, we just use standard SD1.5. You can download it from the official page of Stability. You want the file "v1-5-pruned.ckpt".

File path | Description


/pretrains
┣ 📂 models
┃   ┗ 📜 config.yaml
┃   ┗ 📜 v1-5-pruned.ckpt

┣ 📂 generation  
┃   ┗ 📜 checkpoint_best.pth 

┣ 📂 eeg_pretain
┃   ┗ 📜 checkpoint.pth  (pre-trained EEG encoder)

/datasets
┣ 📂 imageNet_images (subset of Imagenet)

┗  📜 block_splits_by_image_all.pth
┗  📜 block_splits_by_image_single.pth 
┗  📜 eeg_5_95_std.pth  

/code
┣ 📂 sc_mbm
┃   ┗ 📜 mae_for_eeg.py
┃   ┗ 📜 trainer.py
┃   ┗ 📜 utils.py

┣ 📂 dc_ldm
┃   ┗ 📜 ldm_for_eeg.py
┃   ┗ 📜 utils.py
┃   ┣ 📂 models
┃   ┃   ┗ (adopted from LDM)
┃   ┣ 📂 modules
┃   ┃   ┗ (adopted from LDM)

┗  📜 stageA1_eeg_pretrain.py   (main script for EEG pre-training)
┗  📜 eeg_ldm.py    (main script for fine-tuning stable diffusion)
┗  📜 gen_eval_eeg.py               (main script for generating images)

┗  📜 dataset.py                (functions for loading datasets)
┗  📜 eval_metrics.py           (functions for evaluation metrics)
┗  📜 config.py                 (configurations for the main scripts)

Environment setup

Create and activate conda environment named dreamdiffusion from the env.yaml

conda env create -f env.yaml
conda activate dreamdiffusion

Generating Images with Trained Checkpoints

Run this stage with our provided checkpoints: Here we provide a checkpoint ckpt, which you may want to try.

python3 code/gen_eval_eeg.py --dataset EEG --model_path  pretrains/models/checkpoint.pth --splits_path "datasets/block_splits_by_image_single.pth" --eeg_signals_path "datasets/eeg_5_95_std.pth" --config_patch "pretrains/models/config15.yaml"

Acknowledgement

This code is built upon the publicly available code Mind-vis and StableDiffusion. Thanks these authors for making their excellent work and codes publicly available.

Citation

Please cite the following paper if you use this repository in your reseach.

@article{bai2023dreamdiffusion,
  title={DreamDiffusion: Generating High-Quality Images from Brain EEG Signals},
  author={Bai, Yunpeng and Wang, Xintao and Cao, Yanpei and Ge, Yixiao and Yuan, Chun and Shan, Ying},
  journal={arXiv preprint arXiv:2306.16934},
  year={2023}
}
排名相邻
同类项目