Closed MilesTheProwler closed 1 year ago
Hi I had same error due to not enough vram on gpu , Vanessa’s response to issue solved “In this case, during the first stage, you could decrease the memory consumption by first, controlling the batch_size (https://github.com/SamsungLabs/NeuralHaircut/blob/main/configs/example_config/neural_strands-monocular.yaml#L35) , then n_images_sampling (https://github.com/SamsungLabs/NeuralHaircut/blob/main/configs/example_config/neural_strands-monocular.yaml#L26C5-L26C24) and bs_sampling (https://github.com/SamsungLabs/NeuralHaircut/blob/main/configs/example_config/neural_strands-monocular.yaml#L27). I propose to set batch_size=512, n_images_sampling=16, bs_sampling=32. If it still would take more memory then you have just reduce the batch_size more till it would be ok.”
@BingEdison Thank you for your kind reply. But even though I reduce the batch size to 16 , it still have that error. I do something wrong ? It took 99% of my RAM memory. May be I have to change float size to 32 . Do you how to change it?
@NaToh5 I think you would be able to run the code in your memory restrictions if you either consider less amount of views (images) in monocular video or consider the scene with smaller resolution (h3ds multiview data https://github.com/CrisalixSA/h3ds).
For a fast check of the first option, I propose in https://github.com/SamsungLabs/NeuralHaircut/blob/main/src/models/dataset.py#L330 just add [:2]
at the end of each string from 330-340 to consider only 2 views.
Thank you for your reply @Vanessik
Hi, can someone help me to solve this error?
I run this command
python run_geometry_reconstruction.py --case person_0 --conf ./configs/example_config/neural_strands-monocular.yaml --exp_name first_stage_person_0
Error