{"id":17116333,"url":"https://github.com/daviddao/spatial-transformer-tensorflow","last_synced_at":"2025-04-08T03:14:27.072Z","repository":{"id":44329062,"uuid":"54808223","full_name":"daviddao/spatial-transformer-tensorflow","owner":"daviddao","description":"🐝Tensorflow Implementation of Spatial Transformer Networks ","archived":false,"fork":false,"pushed_at":"2019-10-17T09:04:40.000Z","size":4491,"stargazers_count":292,"open_issues_count":4,"forks_count":109,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-31T18:21:48.254Z","etag":null,"topics":["spatial-transformer-network","tensorflow"],"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/daviddao.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":"2016-03-27T02:04:32.000Z","updated_at":"2025-03-15T18:03:24.000Z","dependencies_parsed_at":"2022-09-14T16:51:20.135Z","dependency_job_id":null,"html_url":"https://github.com/daviddao/spatial-transformer-tensorflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviddao%2Fspatial-transformer-tensorflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviddao%2Fspatial-transformer-tensorflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviddao%2Fspatial-transformer-tensorflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviddao%2Fspatial-transformer-tensorflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daviddao","download_url":"https://codeload.github.com/daviddao/spatial-transformer-tensorflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767236,"owners_count":20992548,"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":["spatial-transformer-network","tensorflow"],"created_at":"2024-10-14T17:48:32.847Z","updated_at":"2025-04-08T03:14:27.041Z","avatar_url":"https://github.com/daviddao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spatial Transformer Network\n\n[![](https://tinyurl.com/greenai-pledge)](https://github.com/daviddao/green-ai)\n\nThe Spatial Transformer Network [1] allows the spatial manipulation of data within the network.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"600px\" src=\"http://i.imgur.com/ExGDVul.png\"\u003e\u003cbr\u003e\u003cbr\u003e\n\u003c/div\u003e\n\n### API \n\nA Spatial Transformer Network implemented in Tensorflow 0.7 and based on [2].\n\n#### How to use\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"http://i.imgur.com/gfqLV3f.png\"\u003e\u003cbr\u003e\u003cbr\u003e\n\u003c/div\u003e\n\n```python\ntransformer(U, theta, out_size)\n```\n    \n#### Parameters\n\n    U : float \n        The output of a convolutional net should have the\n        shape [num_batch, height, width, num_channels]. \n    theta: float   \n        The output of the\n        localisation network should be [num_batch, 6].\n    out_size: tuple of two ints\n        The size of the output of the network\n        \n    \n#### Notes\nTo initialize the network to the identity transform init ``theta`` to :\n\n```python\nidentity = np.array([[1., 0., 0.],\n                    [0., 1., 0.]]) \nidentity = identity.flatten()\ntheta = tf.Variable(initial_value=identity)\n```        \n\n#### Experiments\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"600px\" src=\"http://i.imgur.com/HtCBYk2.png\"\u003e\u003cbr\u003e\u003cbr\u003e\n\u003c/div\u003e\n\nWe used cluttered MNIST. Left column are the input images, right are the attended parts of the image by an STN.\n\nAll experiments were run in Tensorflow 0.7.\n\n### References\n\n[1] Jaderberg, Max, et al. \"Spatial Transformer Networks.\" arXiv preprint arXiv:1506.02025 (2015)\n\n[2] https://github.com/skaae/transformer_network/blob/master/transformerlayer.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaviddao%2Fspatial-transformer-tensorflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaviddao%2Fspatial-transformer-tensorflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaviddao%2Fspatial-transformer-tensorflow/lists"}