{"id":19660004,"url":"https://github.com/samyak2/fourier-dnn","last_synced_at":"2026-05-15T10:07:22.983Z","repository":{"id":68546801,"uuid":"282960105","full_name":"Samyak2/fourier-dnn","owner":"Samyak2","description":"Tensorflow 2.0 implementation of fourier feature mapping networks.","archived":false,"fork":false,"pushed_at":"2020-12-10T09:50:02.000Z","size":937,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T02:51:05.349Z","etag":null,"topics":["fourier-features","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Samyak2.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-27T16:54:06.000Z","updated_at":"2021-07-08T17:51:32.000Z","dependencies_parsed_at":"2023-03-25T11:12:36.200Z","dependency_job_id":null,"html_url":"https://github.com/Samyak2/fourier-dnn","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Samyak2/fourier-dnn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samyak2%2Ffourier-dnn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samyak2%2Ffourier-dnn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samyak2%2Ffourier-dnn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samyak2%2Ffourier-dnn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samyak2","download_url":"https://codeload.github.com/Samyak2/fourier-dnn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samyak2%2Ffourier-dnn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33062698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":["fourier-features","tensorflow"],"created_at":"2024-11-11T15:44:57.197Z","updated_at":"2026-05-15T10:07:22.965Z","avatar_url":"https://github.com/Samyak2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fourier-dnn\n\n![Tests](https://github.com/Samyak2/fourier-dnn/workflows/Tests/badge.svg)\n\nTensorflow 2.0 implementation of fourier feature mapping networks.\n\nBased on the paper [\"Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional\nDomains\"](https://arxiv.org/abs/2006.10739).\n\n# Results\n\nResults after training fourier feature mapping models for around 100-200 epochs.\n\n![](./output_g_0_test.png)\n![](./output_g_1_test.png)\n![](./output_g_2_test.png)\n\n# Setup\n\n - Git clone\n - Install the package locally (the `-e` flag means that any changes you make here in the code will be\n    reflected in the package)\n    ```bash\n    pip install -e .\n    ```\n# Usage\n\nCheck out the [2D image regression example](fourier_dnn/2d_image_regression.py) for an example\nusage.\n\nRun the example using:\n```bash\npython ./fourier_dnn/2d_image_regression.py 3 100\n```\nwhere `3` is the image index from the dataset (of 16 images) and `100` is the number of epochs.\n(Dataset taken from the [original\nimplementation](https://github.com/tancik/fourier-feature-networks))\n\nUse `fourier_dnn.ffm_mlp.FourierMLP` to make a complete fourier feature mapping network.\nFor example:\n```python\nmodel = FourierMLP(10, 256, 3,\n                   gaussian=True, staddev=16,\n                   num_units_FFM=256)\n```\n\nUse `fourier_dnn.metrics.PSNR` as a metric for `model.compile` to get PSNR values on every epoch.\n\n# Weights and Biases reports\n\n - [Effect of standard\ndeviation](https://app.wandb.ai/malthael/fourier-feature-dnn/reports/Effect-of-Standard-Deviation-on-Fourier-Feature-Networks--VmlldzoxODg1NDc)\n - [Effect of learning\n   rate](https://app.wandb.ai/samyak/fourier-dnn/reports/Effect-of-learning-rate--VmlldzoxODg1Mjg)\n - [Effect of number of Dense\n   units](https://app.wandb.ai/samyak/fourier-dnn/reports/Effect-of-number-of-Dense-units--VmlldzoxODg1NjQ)\n - [Effect of standard deviation\n   2](https://app.wandb.ai/samyak/fourier-dnn/reports/Effect-of-number-of-Dense-units--VmlldzoxODg1NjQ)\n - [Effect of number of\n   layers](https://app.wandb.ai/entherealenvy/fourier-dnn-fourier_dnn/reports/Fourier-DNN--VmlldzoxODg1MzI)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyak2%2Ffourier-dnn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamyak2%2Ffourier-dnn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyak2%2Ffourier-dnn/lists"}