Commit History

  1. update(unlimit for search)

    80c0eda
  2. update(limit search 6 to 100)

    77eda19
  3. open show api path

    d9ee113
  4. open scalar api

    278f01d

  1. switch model to classification

    9d9936e
  2. feat: enhance cosine similarity with dynamic masking and multi-label weight division

    0b334e8
  3. perf: optimize age feature extraction using compiled regex pattern

    74ed272
  4. refactor: clean up inline comments and add docstrings to all functions and classes

    f62d638

  1. Update hairstyle mock vectors to 3 classes (26 dimensions total)

    67af344
  2. Update age_regression_model path to age folder

    8a6efa2
  3. Pass raw image to haircolor model and remove inception_preprocess

    1e240c4
  4. Update model paths to fine-tuned versions and adjust skin preprocessing for ConvNeXt

    9f53bfd

  1. Fix hairstyle prediction by removing redundant inception_preprocess (model already has Rescaling layer)

    3f5b918
  2. Support both /refresh and /refresh-token routes with JSON body parsing

    749b859
  3. Update beard label from 'หนวด' to 'หนวดเข้ม'

    05cde6c
  4. Update beard label from 'เคราบาง' to 'ไรหนวด'

    5510d90
  5. Align hairstyle encoding and prediction directly with model class order (Bald, Straight, Wavy)

    1e006bc

  1. Remove emoji icons from log messages

    6e44ce7
  2. Remove legacy 25-dimension vector fallback and update docstrings to 26-dimension

    212a3ed
  3. Fix reverse proxy IP detection and prevent banning proxy/internal IPs

    07d4c70
  4. Fix hairstyle mapping: swap index 1 and 2

    f21bc14
  5. Add hairstyle prediction logging

    a44198b
  6. Remove /api/predict and /api/config from blocked paths to fix Access denied

    b833fcf
  7. Update age model path

    3ca2656
  8. Update Dockerfile and hairstyle model path

    e4090b2
  9. Fix haircolor model input size to 299

    7482914
  10. Update haircolor and hairstyle model paths

    1eeea46
  11. Update hairstyle model to use inception_op

    7dc5bbd
  12. Update haircolor model to inception

    4139a3f

  1. feat: add security middleware (path blocking, rate limit, auto-ban)

    ca524ce
  2. fix: use raw_224 input for haircolor model instead of raw_299

    f210dec
  3. fix: correct haircolor model filename on HuggingFace

    4f29385

  1. Switch Model: haircolor inception to convnextn

    93c9cf9
  2. fix: remove stray period causing syntax error

    fa03312
  3. tune: increase face crop padding to 0.6 to include full hair area

    5332aaa
  4. fix: re-enable face cropping (disabling it caused bad predictions like always Gray Hair)

    35b86ef
  5. fix: update haircolor labels to match model class_names (Gray, Blond, Black)

    4d0cf10
  6. test: disable face alignment and cropping to test model accuracy

    39f2ae0
  7. switch input haircolor 224 to 299

    c043e78
  8. clean: remove unused efficientnet import

    d53cee4
  9. refactor: apply code review suggestions (thread-safety, retry logic, lazy preprocessing, parallel inference)

    6204542
  10. perf: remove force_download=True from hf_hub_download

    e769e08
  11. fix: re-add BatchNormalization monkey-patch to handle renorm kwargs

    1eb461e
  12. add force download

    ce8e602
  13. change input haircolor model 224 to 299

    13e8f39
  14. refactor: remove renorm monkey-patch (models re-saved without renorm)

    e9e243b
  15. fix: monkey-patch BatchNormalization to strip renorm kwargs for Keras 3 compatibility

    5714dda
  16. fix: add CustomBatchNormalization to handle Keras 2 renorm kwargs on Keras 3

    ef2aeb3
  17. Switch Model: fine_incetpion_op

    8806da0

  1. delete comment

    1576fa6