GithubHelp home page GithubHelp logo

mrrobot2211 / pytorch-deep-photo-enhancer Goto Github PK

View Code? Open in Web Editor NEW
28.0 3.0 5.0 616.09 MB

pytorch implementation of deep photo enhancer

License: MIT License

Python 98.21% Jupyter Notebook 1.79%
deep-photo-enhancer pytorch gans

pytorch-deep-photo-enhancer's People

Contributors

kubytskyi avatar mrrobot2211 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pytorch-deep-photo-enhancer's Issues

Hi, is it necessary to give a pretrained weights for the generator?

Thank you for your code. It is very clear and helpful! I'm trying to implement this work on my own data. I'm a little bit confused about is it necessary to pre-train weights for the generator? The instructions in README.md let me think I need to do SL before doing UL. But it isn't mentioned in the paper. Is a pretrained generator necessary?

Thank you!

No effect applied after inference

I run command

!python unbounded_inference.py --generator_model 'gan2_train_28_40.pth' --input_image 'teaser.jpg' --output_image 'xui.jpeg'

But don't see any different in comparison with original.
Result
xui (8)
Original
teaser

Run for training

Hi, MrRobot. When I'm trying to run 'python 2WayGAN_Train_v3', I am getting this error:
File "2WayGAN_Train_v3.py", line 9, in
from libs.networks import *
File "/data/glusterfs_cv_04/11121734/pytorch-deep-photo-enhancer-master/libs/networks.py", line 61, in
from util.image_pool import ImagePool
ModuleNotFoundError: No module named 'util'
but I can't find where the util.py is. Looking forward to your reply, thank you very much.

Regarding resize of my images

Hii Mr Robot , when i am trying to resize my image in resize.py ,i am getting this error
PermissionError Traceback (most recent call last)
in
49 # resize_image("/home/felipe/deep-photo-enhancer-master/images_LR/Expert-C/Testing")
50 # resize_image("/home/felipe/deep-photo-enhancer-master/images_LR/Expert-C/Training1")
---> 51 rename_MIT_files("/Users/HP/Desktop/pytorch-deep-photo-enhancer/images_LR/Expert-C/Training2")
52 resize_image("/Users/HP/Desktop/pytorch-deep-photo-enhancer/images_LR/Expert-C/Training2")
53 # resize_image("/home/felipe/deep-photo-enhancer-master/images_LR/Expert-C/Training2/hdrs")

in rename_MIT_files(dir)
24 os. remove(subdir+'/'+file)
25 else:
---> 26 os.rename(subdir+'/'+file,subdir+'/'+file.split(".")[0]+".tif")
27
28

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '/Users/HP/Desktop/pytorch-deep-photo-enhancer/images_LR/Expert-C/Training2\1/bad.tif' -> '/Users/HP/Desktop/pytorch-deep-photo-enhancer/images_LR/Expert-C/Training2\1/bad.tif'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.