# Something wrong with my ProjectSemiLM

**URL:** <https://discourse.slicer.org/t/something-wrong-with-my-projectsemilm/22608>\
**Category:** SlicerMorph\
**Created:** [March 20, 2022, 12:55pm UTC](https://discourse.slicer.org/t/something-wrong-with-my-projectsemilm/22608 "2022-03-20T12:55:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yyl/32/14582_2.png) [@yyl](https://discourse.slicer.org/u/yyl)\
**Post date:** [March 20, 2022, 12:55pm UTC](https://discourse.slicer.org/t/something-wrong-with-my-projectsemilm/22608/1 "2022-03-20T12:55:06Z")

</div>

4.11  
windows10  
I use ProjectSemiLM to transfer semilandmarks across samples.I have existing manual landmarks on each model and use the PseudoLMGenerator to set surface semilandmarks by generating pseudo-landmarks for the whole template and removing the landmark set with the MarkupEditor.But when I use ProjectSemiLM,no new semilandmarks are generated.  
1.The models of samples are cropped by crop volume,I can’t guarantee the ROI is the same，does it matter?  
2.Is markups fiducial CSV same as fiducial CSV?what kind of landmarks should I save? And what kind of model shoule I choose when I select the reference model used to place the initial semi-landmark points?vtk or stl?  
3.Is there anyelse reference videos or tutorial other than [SlicerMorph Patch Based Semi-landmarking (Part 2) Transferring the patches to new samples - YouTube](https://www.youtube.com/watch?v=UD2tmFuaSJg) and [SlicerMorph/Docs/ProjectSemiLM at master · SlicerMorph/SlicerMorph · GitHub](https://github.com/SlicerMorph/SlicerMorph/tree/master/Docs/ProjectSemiLM)?

Thank you very much!!!

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [March 20, 2022, 4:23pm UTC](https://discourse.slicer.org/t/something-wrong-with-my-projectsemilm/22608/2 "2022-03-20T16:23:16Z")

</div>

> [@yyl](#):
>
> I use ProjectSemiLM to transfer semilandmarks across samples.I have existing manual landmarks on each model and use the PseudoLMGenerator to set surface semilandmarks by generating pseudo-landmarks for the whole template and removing the landmark set with the MarkupEditor.But when I use ProjectSemiLM,no new semilandmarks are generated.

To me this points out to potential an issue with the landmark correspondence between reference landmark sets (issues with ordering, number etc). If the thin plate spline transform fails, no landmarks will be transferred to the target.

Do you see an error if you open the log (Ctrl+0). Without seeing your data, this is as much as I can guess.

` 2.Is markups fiducial CSV same as fiducial CSV?what kind of landmarks should I save? And what kind of model shoule I choose when I select the reference model used to place the initial semi-landmark points?vtk or stl?`

Yes, both markups fcsv and fcsv are the same format. We suggest using PLY format as our model format actually (not vtk or stl).

The reference tutorial is what you linked. Are you having problem following the instructions there?

---

<div class="post-metadata">

**Author:** ![yyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yyl/32/14582_2.png) [@yyl](https://discourse.slicer.org/u/yyl)\
**Post date:** [March 22, 2022, 2:18pm UTC](https://discourse.slicer.org/t/something-wrong-with-my-projectsemilm/22608/3 "2022-03-22T14:18:17Z")

</div>

I checked the ordering and the number of my 11 landmarks, and the log said it can not load my file which has my target model inside.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/9/69a04591ab7c6bdf0736c35a3fbb05f82e688e6a.png)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [March 22, 2022, 9:33pm UTC](https://discourse.slicer.org/t/something-wrong-with-my-projectsemilm/22608/4 "2022-03-22T21:33:50Z")

</div>

Log shows you are trying to load the models from a scene file. You should follow the instructions of the [ProjectSemiLMPatches](https://github.com/SlicerMorph/SlicerMorph/tree/master/Docs/ProjectSemiLM) carefully.

It asks for a folder of model files.

---

<div class="post-metadata">

**Author:** ![yyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yyl/32/14582_2.png) [@yyl](https://discourse.slicer.org/u/yyl)\
**Post date:** [March 23, 2022, 4:07pm UTC](https://discourse.slicer.org/t/something-wrong-with-my-projectsemilm/22608/5 "2022-03-23T16:07:05Z")

</div>

In the beginning, I put all the files in the same folder, or this caused projectsemiLM loaded the models from a scene file. Now I put the landmarks and model files in different folders and tried different save formats. But log said IndexError: list index out of range. I looked it up online and it might mean the list is empty. When I choose the mesh dictionary and the landmark dictionary,the preview window shows that No items match my search criteria. But I do put the target files in the folders. I have no idea of this.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/a/caf615d0d8ac407501c9ed63d77697d5fb7135c1.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/3/c32cf30f16e1a5b10f53cddf56a02ed7703d1f8a.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/b/db0e8d61ff41791f800c3761c0aa65230ff12b95.png)

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [March 23, 2022, 4:53pm UTC](https://discourse.slicer.org/t/something-wrong-with-my-projectsemilm/22608/6 "2022-03-23T16:53:07Z")

</div>

Currently, the ProjectSemiLM module assumes that each mesh and landmark file will have a numerical ID in the filename so they can be matched. For example, if you add “\_1” at the end of the filenames for the corresponding mesh and landmark file in your “lm” and “stl” folders, it should resolve this issue should work.

I will also update the interface so this is no longer a requirement, so if you’d like to wait a day or two for a new build it should be available soon.

---

<div class="post-metadata">

**Author:** ![yyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yyl/32/14582_2.png) [@yyl](https://discourse.slicer.org/u/yyl)\
**Post date:** [March 24, 2022, 2:06pm UTC](https://discourse.slicer.org/t/something-wrong-with-my-projectsemilm/22608/7 "2022-03-24T14:06:52Z")

</div>

Thank you very much for your help. I transferred semilandmarks across samples successfully!!!
