Coder Social home page Coder Social logo

second stage loss about neuralhaircut HOT 9 OPEN

samsunglabs avatar samsunglabs commented on July 19, 2024
second stage loss

from neuralhaircut.

Comments (9)

VanessaSklyarova avatar VanessaSklyarova commented on July 19, 2024

Hi @saudades18! Could you please describe how you launch the code on 40 images?

from neuralhaircut.

saudades18 avatar saudades18 commented on July 19, 2024

thanks for your reply @VanessaSklyarova .i just change the monoculardataset and add [:40] at the end of string in 330-340

from neuralhaircut.

saudades18 avatar saudades18 commented on July 19, 2024

And i use h3ds dataset to test, howerer, during the training, it still occur "NaN during backprop was found, skipping iteration", is it normal?

from neuralhaircut.

VanessaSklyarova avatar VanessaSklyarova commented on July 19, 2024

@saudades18 did you face any uploading weights error in https://github.com/SamsungLabs/NeuralHaircut/blob/main/src/models/dataset.py#L378 and did you use configs from ./example?

Yes, "NaN during backprop was found, skipping iteration" is okay if it happens not frequently.

from neuralhaircut.

saudades18 avatar saudades18 commented on July 19, 2024

@VanessaSklyarova i did not face uploading weights error, however "NaN during backprop was found, skipping iteration" happens frequently, about 90%.
And i use configs from ./example, i just follow the command in https://github.com/SamsungLabs/NeuralHaircut/tree/main/example/readme.md
And when i using h3ds dataset, the hair is optimized. but when using the data given(this time all images), the loss still was not decreased, and the hair primitives were still long and straight.
Could you please provide the checkpoint for the second stage?
Thanks for your reply :)

from neuralhaircut.

VanessaSklyarova avatar VanessaSklyarova commented on July 19, 2024

@saudades18 Could you set https://github.com/SamsungLabs/NeuralHaircut/blob/main/configs/example_config/hair_strands_textured.yaml#L54 to false, change https://github.com/SamsungLabs/NeuralHaircut/blob/main/configs/example_config/hair_strands_textured.yaml#L77 and https://github.com/SamsungLabs/NeuralHaircut/blob/main/configs/example_config/hair_strands_textured.yaml#L78 to 0. and check if the loss decrease with time? (You could try it on 40 images as well)

from neuralhaircut.

saudades18 avatar saudades18 commented on July 19, 2024

@VanessaSklyarova Thanks for your kind reply! Now the hair is optimized, and the loss is decreasing except hair_L_diff loss. And before most of the render images are black, maybe this is the reason? So how can i train successfully with rendering?
Maybe first train without render loss, and get a approximate hair shape, and then use all loss to refine? will it help?

from neuralhaircut.

VanessaSklyarova avatar VanessaSklyarova commented on July 19, 2024

@saudades18 Yes, it should be more stable if you start rendering after approx. 1000 steps, but still it is very strange why it doesn't work from the beginning. I didn't face such rendering problems before when checked on different scenes, so I'll have a look at this.

from neuralhaircut.

saudades18 avatar saudades18 commented on July 19, 2024

@VanessaSklyarova i start rendering after 1000 steps, but it seems like the render images are still not optimized. And "Nan" still happens frequently so the iteration is skipped. Below is one of the render images, and it looks like rasterize image rather than real rgb.
pred_hair_strands_6

from neuralhaircut.

Related Issues (18)

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.