{"id":15904426,"url":"https://github.com/qubvel/resnet_152","last_synced_at":"2025-09-11T23:32:06.075Z","repository":{"id":107991264,"uuid":"133051562","full_name":"qubvel/resnet_152","owner":"qubvel","description":"Pretrained on ImageNet ResNet-152 model in Keras","archived":false,"fork":false,"pushed_at":"2018-05-12T17:31:31.000Z","size":113,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T14:12:38.897Z","etag":null,"topics":["keras","pre-trained","pretrained","resnet-152"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qubvel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-11T14:41:16.000Z","updated_at":"2024-12-20T16:51:34.000Z","dependencies_parsed_at":"2024-07-20T13:46:54.090Z","dependency_job_id":null,"html_url":"https://github.com/qubvel/resnet_152","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/qubvel/resnet_152","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubvel%2Fresnet_152","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubvel%2Fresnet_152/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubvel%2Fresnet_152/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubvel%2Fresnet_152/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qubvel","download_url":"https://codeload.github.com/qubvel/resnet_152/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubvel%2Fresnet_152/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274726630,"owners_count":25338395,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["keras","pre-trained","pretrained","resnet-152"],"created_at":"2024-10-06T12:23:45.417Z","updated_at":"2025-09-11T23:32:05.736Z","avatar_url":"https://github.com/qubvel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ResNet-152 model for Keras\n\nReference:\n- [Deep Residual Learning for Image Recognition](https://arxiv.org/abs/1512.03385)\n\nExtention of model taken [here](https://gist.github.com/flyyufelix/7e2eafb149f72f4d38dd661882c554a6).  \nModel made in Keras style with pretrained weights from ImageNet provided in release (load automatically during model initialization).  \n\n### Example  \n##### Inference example for this picture:  \n\u003cimg src=\"https://github.com/qubvel/ResNet152/blob/master/imgs/cat.jpg\" width=\"300\" height=\"200\"\u003e\n\n##### Code\n```python\n\nimport numpy as np\nfrom skimage.io import imread\nfrom skimage.transform import resize\nfrom keras.applications.imagenet_utils import decode_predictions\nfrom keras.applications.imagenet_utils import preprocess_input\nfrom model import ResNet152\n\n# create model\nmodel = ResNet152()\n\n# define function for input preprocessing\ndef preprocess(x):\n    x = resize(x, (224,224), mode='constant') * 255\n    x = preprocess_input(x)\n    if x.ndim == 3:\n        x = np.expand_dims(x, 0)\n    return x\n\n# prepare image\nimg = imread('./imgs/cat.jpg')\nx = preprocess(img)\n\n# make prediction and decode it\ny = model.predict(x)\npred_title = decode_predictions(y, top=1)[0][0][1]\n\n# print result\nprint(pred_title)\n### tiget_cat\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubvel%2Fresnet_152","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqubvel%2Fresnet_152","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubvel%2Fresnet_152/lists"}