{"id":22958553,"url":"https://github.com/zjbthomas/tmo-gan","last_synced_at":"2025-10-09T10:07:24.529Z","repository":{"id":143236880,"uuid":"496452420","full_name":"zjbthomas/TMO-GAN","owner":"zjbthomas","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-03T15:30:23.000Z","size":76766,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T10:07:23.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zjbthomas.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,"zenodo":null}},"created_at":"2022-05-26T02:15:01.000Z","updated_at":"2024-10-17T08:00:34.000Z","dependencies_parsed_at":"2023-05-25T15:45:22.838Z","dependency_job_id":null,"html_url":"https://github.com/zjbthomas/TMO-GAN","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zjbthomas/TMO-GAN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjbthomas%2FTMO-GAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjbthomas%2FTMO-GAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjbthomas%2FTMO-GAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjbthomas%2FTMO-GAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zjbthomas","download_url":"https://codeload.github.com/zjbthomas/TMO-GAN/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjbthomas%2FTMO-GAN/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001322,"owners_count":26083040,"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-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2024-12-14T17:46:26.337Z","updated_at":"2025-10-09T10:07:24.524Z","avatar_url":"https://github.com/zjbthomas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Generative Adversarial Network Based Tone Mapping Operator for 4K HDR Images\n\nThis is the repository for paper [A Generative Adversarial Network Based Tone Mapping Operator for 4K HDR Images](https://ieeexplore.ieee.org/abstract/document/10074176/) accepted to ICNC 2023.\n\n## Dataset\n\nThe dataset we constructed in Section 2.1 of our paper can be downloaded [here](https://www.dropbox.com/s/0nh4837okzd0jtq/data_train.tar.xz?dl=0).\n\n## Experiments\n\n### Training\n\nRun the following code to train the network:\n\n```\npython -u esrgan.py --hdr_image_dir /path/to/HDR/ --sdr_image_dir /path/to/SDR/ --residual_blocks 23 --lr 1e-5 --warmup_epochs 300 --image_size 128 --batch_size 8 --psnr_decay_epoch 50 --decay_epoch 100 --n_epochs 600\n```\n\n### Testing\n\nRun the following code to evaluate the network. A pretrained model is provided [here](./pretrained/generator.pth).\n\n```\npython -u infer.py --image_path /path/to/HDR/dir/ \n--output_dir /path/to/output/dir/ --checkpoint_model ./pretrained/generator.pth \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjbthomas%2Ftmo-gan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzjbthomas%2Ftmo-gan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjbthomas%2Ftmo-gan/lists"}