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

Stylistic fixes and addition of multi-modal scaffolding #810

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flood_forecast/basic/linear_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def simple_decode(model: Type[torch.nn.Module],
else:
# residual = output_len if max_seq_len - output_len - i >= 0 else max_seq_len % output_len
if output_len != out.shape[1]:
raise ValueError("Output length should laways equal the output shape")
raise ValueError("Output length should always equal the output shape")
real_target2[:, i:i + residual, 0:multi_targets] = out[:, :residual]
src = torch.cat((src[:, residual:, :], real_target2[:, i:i + residual, :]), 1)
ys = torch.cat((ys, real_target2[:, i:i + residual, :]), 1)
Expand Down
2 changes: 1 addition & 1 deletion flood_forecast/model_dict_function.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flood_forecast.multi_models.crossvivit import RoCrossViViT
from flood_forecast.multimodal_models.crossvivit import RoCrossViViT
from flood_forecast.transformer_xl.multi_head_base import MultiAttnHeadSimple
from flood_forecast.transformer_xl.transformer_basic import SimpleTransformer, CustomTransformerDecoder
from flood_forecast.transformer_xl.informer import Informer
Expand Down
Loading
Loading