# Run ALPACA nogui from python script

**URL:** https://discourse.slicer.org/t/run-alpaca-nogui-from-python-script/40223
**Category:** Support
**Created:** [November 16, 2024, 1:20am UTC](https://discourse.slicer.org/t/run-alpaca-nogui-from-python-script/40223 "2024-11-16T01:20:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![atha\_morph](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@atha\_morph](https://discourse.slicer.org/u/atha_morph)
#### Post date: [November 16, 2024, 1:20am UTC](https://discourse.slicer.org/t/run-alpaca-nogui-from-python-script/40223/1 "2024-11-16T01:20:44Z")

</div>

Hello all,  
I would like to run ALPACA lib or the initial python library, in my python script.  
Any Idea how can I do it?  
I would like to give as input Source model, Source landmarks and Target model and the final return would be Target Landmarks.

---

<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: [November 16, 2024, 2:33am UTC](https://discourse.slicer.org/t/run-alpaca-nogui-from-python-script/40223/2 "2024-11-16T02:33:16Z")

</div>

This came up a few times, but I never quite understand why. You will not benefit from building a script only to do interactive landmark transfer. And we already provide an interface to do batch landmark transfer for many samples.

---

<div class="post-metadata">

### Author: ![atha\_morph](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@atha\_morph](https://discourse.slicer.org/u/atha_morph)
#### Post date: [November 16, 2024, 9:59am UTC](https://discourse.slicer.org/t/run-alpaca-nogui-from-python-script/40223/3 "2024-11-16T09:59:02Z")

</div>

Hello Murat,  
Thank you for the suggestion.  
Can I use batch landmark transfer with no gui?  
In other case ,can I just use the python libraries _open3d_ or _pycpd_?

---

<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: [November 16, 2024, 11:26pm UTC](https://discourse.slicer.org/t/run-alpaca-nogui-from-python-script/40223/4 "2024-11-16T23:26:36Z")

</div>

Why don’t you want to use GUI?

In any event, you can look at the logic part of the ALPACA module and build up a entirely scripted version. Though, I still don’t understand why…

ALPACA does not use open3d anymore. We have switched to ITK.
