Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ data_keys:
- "stl_faces"
- "stl_centers"
- "stl_coordinates"

- "air_density"
- "stream_velocity"
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ data:
include_sdf: false
include_geometry: true
geometry_sampling: 300_000
broadcast_global_features: true
broadcast_global_features: false


# Logging configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ def build_data_dict(

# Add flow parameters
data_dict["air_density"] = torch.tensor(
[air_density], device=device, dtype=torch.float32
air_density, device=device, dtype=torch.float32
)
data_dict["stream_velocity"] = torch.tensor(
[stream_velocity], device=device, dtype=torch.float32
stream_velocity, device=device, dtype=torch.float32
)

return data_dict
Expand Down
2 changes: 1 addition & 1 deletion physicsnemo/experimental/models/geotransolver/gale.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def forward(
attn = self.Attn(tuple(normed_inputs), global_context)

# Residual connection after attention
fx_out = [attn[i] + normed_inputs[i] for i in range(len(normed_inputs))]
fx_out = [attn[i] + fx[i] for i in range(len(fx))]

# Feed-forward network with residual connection
fx_out = [self.ln_mlp1(_fx) + _fx for _fx in fx_out]
Expand Down
Binary file modified test/models/geotransolver/data/geotransolver_basic_output.pth
Binary file not shown.
Binary file not shown.
Binary file modified test/models/geotransolver/data/geotransolver_tuple_output.pth
Binary file not shown.