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

refactor: feature generation #262

Merged
merged 1 commit into from
Oct 8, 2024
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
1 change: 1 addition & 0 deletions src/deep_neurographs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class MLConfig:
threshold: float = 0.6
model_type: str = "GraphNeuralNet"
n_epochs: int = 1000
use_img_embedding: bool = False
validation_split: float = 0.15
weight_decay: float = 1e-3

Expand Down
8 changes: 4 additions & 4 deletions src/deep_neurographs/generate_proposals.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ def run_trimming(neurograph, proposals, radius, progress_bar):

def trim_endpoints(neurograph, i, j, radius):
# Initializations
branch_i = neurograph.get_branch(i)
branch_j = neurograph.get_branch(j)
branch_i = neurograph.branch(i)
branch_j = neurograph.branch(j)

# Check both orderings
idx_i, idx_j = trim_endpoints_ordered(branch_i, branch_j)
Expand Down Expand Up @@ -394,8 +394,8 @@ def trim_to_idx(neurograph, i, idx):

"""
# Update node
branch_xyz = neurograph.get_branch(i, key="xyz")
branch_radii = neurograph.get_branch(i, key="radius")
branch_xyz = neurograph.branch(i, key="xyz")
branch_radii = neurograph.branch(i, key="radius")
neurograph.nodes[i]["xyz"] = branch_xyz[idx]
neurograph.nodes[i]["radius"] = branch_radii[idx]

Expand Down
Loading
Loading