Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'numpy' has no attribute 'float'. #35

Open
FreeStyleFreeLunch opened this issue Jul 4, 2024 · 0 comments
Open

module 'numpy' has no attribute 'float'. #35

FreeStyleFreeLunch opened this issue Jul 4, 2024 · 0 comments

Comments

@FreeStyleFreeLunch
Copy link

Traceback (most recent call last):
File "code/stageA1_eeg_pretrain.py", line 294, in
main(config)
File "code/stageA1_eeg_pretrain.py", line 141, in main
model = MAEforEEG(time_len=dataset_pretrain.data_len, patch_size=config.patch_size, embed_dim=config.embed_dim,
File "/home/feihonghe/workspace/dreamdiffusion/DreamDiffusion-main/code/sc_mbm/mae_for_eeg.py", line 99, in init
self.initialize_weights()
File "/home/feihonghe/workspace/dreamdiffusion/DreamDiffusion-main/code/sc_mbm/mae_for_eeg.py", line 104, in initialize_weights
pos_embed = ut.get_1d_sincos_pos_embed(self.pos_embed.shape[-1], self.num_patches, cls_token=True)
File "/home/feihonghe/workspace/dreamdiffusion/DreamDiffusion-main/code/sc_mbm/utils.py", line 15, in get_1d_sincos_pos_embed
pos_embed = get_1d_sincos_pos_embed_from_grid(embed_dim, grid_l)
File "/home/feihonghe/workspace/dreamdiffusion/DreamDiffusion-main/code/sc_mbm/utils.py", line 27, in get_1d_sincos_pos_embed_from_grid
omega = np.arange(embed_dim // 2, dtype=np.float)
File "/home/feihonghe/anaconda3/envs/dreamdiffusion/lib/python3.8/site-packages/numpy/init.py", line 305, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'float'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant