Skip to content

ankithreddypati/astramap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

astramap

Astramap Webapp

Browser-based projection mapping tool that generates and edits images using Qwen Image Edit 2511 deployed on Baseten with SGLang Diffusion, and lets you warp and preview them on a canvas against physical surfaces.

What it does

  • Generates and edits images from a prompt and source image via FastAPI proxy
  • Place and warp images on canvas using perspective transforms
  • Iterate fast with real-time preview

How it works

  1. Frontend sends prompt and image to backend
  2. Backend calls Qwen Image Edit on Baseten and returns the result
  3. Frontend displays and warps output to match your target surface

Backend

cd backend
uv sync
uvicorn server:app --host 0.0.0.0 --port 8000 --reload

.env in backend/:

BASETEN_API_KEY=
BASETEN_MODEL_ID=

Frontend

cd frontend
npm install
npm run dev

Deploy model to Baseten

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Push model
uvx truss push qwen-image-edit-2511-sglang-diffusion

truss push

Add hf_access_token in Baseten secrets if the model is gated on HuggingFace.

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors