Giter Club home page Giter Club logo

loho's People

Contributors

dukebw avatar rohitsaha 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

loho's Issues

How to get softmasks?

Thank you for sharing this work!
I tried to run LOHO with my own images, using Graphonomy to extract masks as metioned in the paper, but I dont know how to get softmasks for soft-blending.

Code for Semantic Masks Alignment

I have been able to implement and understand the logic behind the alignment code of segmentation masks but was not able to understand how did you arrive at the values for categorizing the samples into easy, medium and hard, particularly the PD range values i.e how did you normalize the distance values.
Could you please share the code or some details about how you computed these values?

Does the hair generation work on full body images or only on portrait images?

Hi Team,

     Thankyou for your work. Could you please let me know whether the hair work on full body images or not? I have attached file for reference. I need the output to be same as full body but not portrait.

Is that possible anyway to get full body as output without face modification?

I look forward your reply here...
1000_F_63648623_DUOzPJLnh8WwvY1p2pkxoZ81q2oJ7aZA

How to make a custom mask?

Thank you for your hard work!

I'd like to know how to train the logo.

I want to run it with the data I have instead of the sample data provided, what should I do?
How can I make a mask of the data I have?

why it takes so long?

Thanks for your excellent work!
I downloaded your code and make it run like what your README says, but I found it takes about 16mins to get a result. Is this normal or did I miss some important steps?
My gpu is one GTX 2080Ti.

FileNotFound

I am encountering the following error although I have correctly provided paths of every image but still I am getting this error :
FileNotFoundError: [Errno 2] No such file or directory: '/content/LOHO/data/images/00761.png'
I am working on Google coolab and running the following code:
!python /content/LOHO/loho.py --image1 /content/LOHO/data/images/00761.jpg --image2 /content/LOHO/data/images/02602.jpg --image3 /content/LOHO/data/images/00018.jpg
Kindly Help!

soft mask and inpaint backgroud

It`s an impressive work.I want test my face images,but I do not have crresponding softmasks and inpaintbackgroud,can you share how to get that.Thank you so much.

Code for inference on my own data

Thank you for your great work, can you please provide me with the code for generating inpainted backgrounds, masks, softmasks? Thank you very much!

How to cal ssim and psnr

i notice that you don't have the label of the train img, so how to calculate the ssim and psnr. Thanks a lot~

inference.pth file corrupted ...

`Setting up Perceptual loss...
Loading model from: /content/LOHO/networks/lpips/weights/v0.1/vgg.pth
...[net-lin [vgg]] initialized
...Done
Setting up Perceptual loss...
Loading model from: /content/LOHO/networks/lpips/weights/v0.1/vgg.pth
...[net-lin [vgg]] initialized
...Done
Constructing DeepLabv3+ model...
Number of classes: 20
Output stride: 16
Number of Input Channels: 3
/content/drive/MyDrive/inference.pth
Traceback (most recent call last):
  File "/content/LOHO/loho.py", line 180, in <module>
    state_dict = torch.load(graphonomy_model_path)
  File "/usr/local/lib/python3.7/site-packages/torch/serialization.py", line 595, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/usr/local/lib/python3.7/site-packages/torch/serialization.py", line 781, in _legacy_load
    deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly)
RuntimeError: unexpected EOF, expected 1362420 more bytes. The file might be corrupted.`

After Executing loho.py I am getting this error.

Importing compare_ssim error

Hi,

Really thank you for sharing you works.

By the way, I suppose that networks/lpips/init.py should be fixed. May need to fix line 6.

from skimage.metrics import structural_similarity as compare_ssim
instead of
from skimage.measure import compare_ssim

Thanks again.

Cheers,
Dale

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.