JOSM AI Plugin JosmMagicWand to generate polygons

The JOSM AI Plugin JosmMagicWand from Development Seed promises to use Generative AI to create geometries from background image. I installed it from JOSM but do not succeed to use it. Did anyone have experience to share ?

1 Like

I installed it too, but every time I perform an action according to the tutorial, I get a SAM server not reachable error.

image

same for me. I do not see the new cursor 191858042-942aa381-3c4b-42bf-b9df-b23782d1dce5 that I am supposed to see.

Maybe for the magic wand to work you need magic hands ;p))))

This is an orchard!

(The wand in the doc is supposed to be top left in the toolbar. Not on mine… almost perfectly in the centre.

image

And Ctrl+2, still on that orchard

Plug-out underway

That was the hint I needed! I always selected the more prominent tool icon with the microchip on it: image

When I select the first one (didn’t see it) image and I click a meadow I will get this:

However, I can’t get it to create a usable outline when playing around with the parameters in the plugin window.

What could possibly go wrong ™ :grinning:

3 Likes

Moved to this unique roofs in my neighborhood:


Settings:
Tolerance: max (30)
Exterior contour: 0, 0.3, 0.7, 1.0 ← does not have any effect for me
Vertices: same here, 0 or 1 does not make a difference
Topology: same
Smooth Angle: Just minor (more round) improvement when set to 170.0
Min area simplify: No clue, because free text. 0 does the same as 9999
Max distance simplify: same

Maybe the settings will handle the creation of the polygon, I don’t know :person_shrugging:

Ok let’s bring some Magic for the others who want to try this tool :slight_smile:
To start this JOSM edit mode, yes there is the top left Mode bar where we can select the image Magic Mode.

We can also look at the Shortcut preferences panel and assure there is no usage conflict for shortcuts, or define other key selections.

Well ! I had success starting the Magic mode and see better results with highres orthoimages plus focusing on generating polygons for more homegeneous areas like water areas. But still !

<magic>

</magic>

3 Likes

Cool! I’ve wished we had a working magic wand for a while, would help a lot with mapping landuse especially.

As an additional step, I recommend using “Simplify Way” to tidy up any unnecessary nodes!

1 Like