{"id":13934659,"url":"https://github.com/deepsense-ai/Keras-PyTorch-AvP-transfer-learning","last_synced_at":"2025-07-19T19:30:58.104Z","repository":{"id":85485196,"uuid":"150714614","full_name":"deepsense-ai/Keras-PyTorch-AvP-transfer-learning","owner":"deepsense-ai","description":"We pit Keras and PyTorch against each other, showing their strengths and weaknesses in action. We present a real problem, a matter of life-and-death: distinguishing Aliens from Predators!","archived":false,"fork":false,"pushed_at":"2019-03-12T07:03:07.000Z","size":8236,"stargazers_count":49,"open_issues_count":1,"forks_count":32,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-14T09:11:25.313Z","etag":null,"topics":["alien","keras","keras-classification-models","keras-models","keras-neural-networks","keras-tutorials","predator","pytorch","pytorch-cnn","pytorch-implementation","pytorch-tutorial","pytorch-tutorials"],"latest_commit_sha":null,"homepage":"https://deepsense.ai/keras-vs-pytorch-avp-transfer-learning/","language":"Jupyter Notebook","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/deepsense-ai.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}},"created_at":"2018-09-28T09:08:54.000Z","updated_at":"2025-02-21T15:50:43.000Z","dependencies_parsed_at":"2023-03-05T09:45:15.588Z","dependency_job_id":null,"html_url":"https://github.com/deepsense-ai/Keras-PyTorch-AvP-transfer-learning","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deepsense-ai/Keras-PyTorch-AvP-transfer-learning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsense-ai%2FKeras-PyTorch-AvP-transfer-learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsense-ai%2FKeras-PyTorch-AvP-transfer-learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsense-ai%2FKeras-PyTorch-AvP-transfer-learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsense-ai%2FKeras-PyTorch-AvP-transfer-learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepsense-ai","download_url":"https://codeload.github.com/deepsense-ai/Keras-PyTorch-AvP-transfer-learning/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsense-ai%2FKeras-PyTorch-AvP-transfer-learning/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265998438,"owners_count":23862107,"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":["alien","keras","keras-classification-models","keras-models","keras-neural-networks","keras-tutorials","predator","pytorch","pytorch-cnn","pytorch-implementation","pytorch-tutorial","pytorch-tutorials"],"created_at":"2024-08-07T23:01:09.618Z","updated_at":"2025-07-19T19:30:57.296Z","avatar_url":"https://github.com/deepsense-ai.png","language":"Jupyter Notebook","funding_links":[],"categories":["Jupyter Notebook"],"sub_categories":[],"readme":"# Keras vs. PyTorch: Alien vs. Predator recognition with transfer learning\n\n![](images/transfer_learning.png)\n\n\nFeatured in [deepsense.ai](https://deepsense.ai/) blog post [Keras vs. PyTorch: Alien vs. Predator recognition with transfer learning](https://deepsense.ai/keras-vs-pytorch-avp-transfer-learning), in which we discuss the differences. Code is in two Jupyter Notebooks:\n\n* [Transfer learning with ResNet-50 in Keras](Keras-Resnet50.ipynb)\n* [Transfer learning with ResNet-50 in PyTorch](PyTorch-Resnet50.ipynb)\n\nSee also the [upcoming webinar (10 Oct 2018)](https://www.crowdcast.io/e/KerasVersusPyTorch/register), in which we walk trough the code.\n\nFor plug\u0026play interactive code, see the [Neptune versions with fancy charts](https://app.neptune.ml/deepsense-ai/Keras-vs-PyTorch) or these Kaggle Kernels:\n\n* [Transfer learning with ResNet-50 in Keras - Kaggle Kernel](https://www.kaggle.com/pmigdal/transfer-learning-with-resnet-50-in-keras)\n* [Transfer learning with ResNet-50 in PyTorch - Kaggle Kernel](https://www.kaggle.com/pmigdal/transfer-learning-with-resnet-50-in-pytorch)\n\n# Data\n\nSee also: [Alien vs. Predator images | Kaggle](https://www.kaggle.com/pmigdal/alien-vs-predator-images).\nIn general, there are 447 images for each class, split into two classes. Examples:\n\n![](images/example.png)\n\n# Requirements\n\nIf you want to run the code, see the requirements:\n\n* Common:\n  * jupyter==1.0.0\n  * matplotlib==2.2.3\n  * Pillow==5.2.0\n  * h5py==2.8.0\n* Keras:\n  * tensorflow==1.10.1\n  * Keras==2.2.2\n* PyTorch:\n  * torch==0.4.1\n  * torchvision==0.2.1\n\n# Webinar info\n\n* [Link to the webinar (10 Oct 2018, 5 PM CEST)](https://www.crowdcast.io/e/KerasVersusPyTorch/register)\n* [Slides from the webinar](https://docs.google.com/presentation/d/1y6KBgVtvZ26afCbIbCoGZoEdT6-eoUqPc9U4cJ3X1Gw)\n* deepsense.ai's articles about Keras and PyTorch:\n  * [Keras or PyTorch as your first deep learning framework ](https://deepsense.ai/keras-or-pytorch/)\n  * [Keras vs. PyTorch: Alien vs. Predator recognition with transfer learning](https://deepsense.ai/keras-vs-pytorch-avp-transfer-learning/)\n* [Notebooks in Neptune](https://app.neptune.ml/deepsense-ai/Keras-vs-PyTorch)\n* Workshops:\n  * [open workshops at deepsense.ai's HQ](https://deepsense.ai/machine-learning-and-deep-learning-training/)\n  * [on-site workshops](https://deepsense.ai/machine-learning-training/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepsense-ai%2FKeras-PyTorch-AvP-transfer-learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepsense-ai%2FKeras-PyTorch-AvP-transfer-learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepsense-ai%2FKeras-PyTorch-AvP-transfer-learning/lists"}