Views
No views yet
Heads up: Both pipelines are GPU hungry. FreeMorph prefers ≥12GB VRAM; IMPUS often needs 14GB+ plus long per-job fine-tuning runs.
1python -m venv .venv
2source .venv/bin/activate
3pip install --upgrade pip
4pip install -r requirements.txt~/.cache/huggingface).uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload.jpg, .png, etc.). Square crops work best; non-square inputs are center-cropped internally.storage/results/<job_id> and exposed via /storage/results/... URLs so they can be re-loaded or downloaded later. Original uploads are kept under storage/uploads/<job_id> for reproducibility.1huggingface-cli login --token <your_hf_token>
2huggingface-cli repo create zaruta/freemorph-mvp --type=model
3git clone https://huggingface.co/zaruta/freemorph-mvp
4cd freemorph-mvp
5cp -R /Users/zaruta/morph-test/* .
6git add .
7git commit -m "Deploy FreeMorph"
8git push1cd /Users/zaruta/morph-test
2docker login -u zaruta
3docker buildx build --platform linux/amd64 -t zaruta/freemorph-mvp:latest --push .zaruta/freemorph-mvpdocker.io/zaruta/freemorph-mvp:latest8000/api/healthus-east-1https://nziq03no5bepo0w1.us-east-1.aws.endpoints.huggingface.cloud.1cd /Users/zaruta/morph-test
2source .venv/bin/activate
3export API_BASE_URL="https://nziq03no5bepo0w1.us-east-1.aws.endpoints.huggingface.cloud"
4export HF_API_TOKEN="<your_hf_token_here>"
5uvicorn app.main:app --host 0.0.0.0 --port 8000http://localhost:8000./api/morph to the remote endpoint, attaching Authorization: Bearer <your_hf_token> when HF_API_TOKEN is set.https://nziq03no5bepo0w1.us-east-1.aws.endpoints.huggingface.cloud/storage/results/<job>/frame_00.png, so the UI renders images directly from HF storage (локально они не появляются).engine form field is forwarded to the remote endpoint, so hosted deployments expose the same FreeMorph/IMPUS toggle.engine form field.engine=freemorph, diffusion runs fully in-process via FreeMorphService.engine=impus, the app shells out to the vendored IMPUS reference script (vendor/IMPUS/run_morph.py), waits for it to dump numbered PNG frames, and renames them to the common frame_##.png format consumed by the UI.jobId, frames, frameCount, durationMs), so the UI and remote deployments stay agnostic.steps, guidance_scale, or interpolation_size in app/freemorph_service.py./storage/results/<job> around if you want to inspect the intermediate .pt checkpoints it emits.app/ – FastAPI entrypoint plus the FreeMorph/IMPUS service wrappersstatic/ & templates/ – MVP UI assetsstorage/uploads, storage/results – persisted inputs/outputsvendor/FreeMorph – untouched upstream FreeMorph implementationvendor/IMPUS – upstream IMPUS script + helpers invoked via subprocessDockerfile. To run FreeMorph on a hosted GPU:Dockerfile must live in the root).Custom Docker, select GPU hardware (A10G works well), and point the endpoint at your repo.pip install -r requirements.txt and start FastAPI via uvicorn app.main:app --host 0.0.0.0 --port 8000.https://<endpoint>/api/morph; reuse the same JSON contract as locally.