"Segmentation fault: 11" error when using pretrained dataset

Open
#79 2 comments 0 reactions 1 assignee View on GitHub

@FrancescoCasalegno is already working on this.

Since Aug 15, 2022.

Assessment

This issue has not been assessed yet.

Description

bug

Hello,

I am trying to use pre-trained models downloaded following this guide but I get the "Segmentation fault: 11" error even if I use a dummy dataset (i.e. a numpy array of the right shape filled with 0)

I use this script:

d = torch.load("morphoclass/dvc/training/checkpoints-alt-neurites/pc-L6-all-image-tmd-proj-xgb-stratified-k-fold/checkpoint.chk")
model = d["all"]["model"]

dummy = np.zeros((100, 10000))
model.predict(dummy)

I also tried with another model (pc-L5-all-image-tmd-rd-xgb-stratified-k-fold) and with an actual dataset of persistence images but get the same error.

Thank you for your help,

Yann Roussel.

Dominant language
Python
Stars
12
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BlueBrain/morphoclass

All issues in BlueBrain/morphoclass

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.