{"id":26440091,"url":"https://github.com/samedhrmn/image-recommender-flask-api","last_synced_at":"2026-05-21T07:39:43.611Z","repository":{"id":49000388,"uuid":"331688570","full_name":"SamedHrmn/image-recommender-flask-api","owner":"SamedHrmn","description":"Image recommendation flask api backend service. Uses transfer learning feature extraction with ResNet50 - VGG16 models.","archived":false,"fork":false,"pushed_at":"2021-07-01T12:50:49.000Z","size":87904,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-06-29T16:36:34.713Z","etag":null,"topics":["feature-extraction","flask","machinelearning","python","resnet-50","transfer-learning","vgg16"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamedHrmn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-21T16:36:48.000Z","updated_at":"2021-07-01T12:50:51.000Z","dependencies_parsed_at":"2022-09-08T00:00:46.323Z","dependency_job_id":null,"html_url":"https://github.com/SamedHrmn/image-recommender-flask-api","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamedHrmn%2Fimage-recommender-flask-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamedHrmn%2Fimage-recommender-flask-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamedHrmn%2Fimage-recommender-flask-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamedHrmn%2Fimage-recommender-flask-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamedHrmn","download_url":"https://codeload.github.com/SamedHrmn/image-recommender-flask-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244189805,"owners_count":20412991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["feature-extraction","flask","machinelearning","python","resnet-50","transfer-learning","vgg16"],"created_at":"2025-03-18T09:19:24.268Z","updated_at":"2026-05-21T07:39:43.578Z","avatar_url":"https://github.com/SamedHrmn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# image-recommender-flask-api\n\nThis project written as a backend service. \n\n## Content\nThis service gives recommendation with transfer learning based by using uploaded fashion images. For able to use the model, you must have the features of the images.\u003cbr\u003e\nService uses extracted features by ResNet50 or VGG16 architecture. You can extract own features via ResNet50 like this example below. \u003cbr\u003e\n\n```python\nfrom keras.applications.resnet50 import ResNet50, preprocess_input\nfrom keras.applications.vgg16 import VGG16 , preprocess_input\nfrom keras.preprocessing.image import load_img, img_to_array\nfrom keras.models import Model\nimport numpy as np\nfrom numpy.linalg import norm\n\nresnet_model = ResNet50(weights='imagenet',include_top=False)\nprint(resnet_model.summary())\n\n\ndef feature_extraction(img_path , model):\n  img = load_img(img_path)\n  img_array = img_to_array(img)\n\n  expanded_img_array = np.expand_dims(img_array, axis=0)\n  expanded_img_array = np.array(expanded_img_array,dtype='float64')\n\n  preprocessed_img = preprocess_input(expanded_img_array)\n  features = model.predict(preprocessed_img)\n  flattened_features = features.flatten()\n  normalized_features = flattened_features / norm(flattened_features)\n  return normalized_features\n```\n\n\u003cbr\u003e\u003cbr\u003e\n\n![Ekran görüntüsü 2021-07-01 154223](https://user-images.githubusercontent.com/60006881/124126103-fa9b0880-da82-11eb-9616-2ca22742712d.png)\n\n\n## Licence\n\nMIT License\n\nCopyright (c) 2021 SamedHrmn\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamedhrmn%2Fimage-recommender-flask-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamedhrmn%2Fimage-recommender-flask-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamedhrmn%2Fimage-recommender-flask-api/lists"}