Open yuyingyeh opened 1 year ago
I have the same problem. Loading the model to the CPU instead of the GPU seems to work, but is very slow. After some testing, I found that the problem only seems to occur on GPUs with certain or perhaps old architectures. On my Ampere-based RTX 3080 everything works fine, but when running the same code on a Pascal-based GTX 1050 Ti the model predicts NaN values.
Hi! I’ve used the successfully used these weights before on GPU after downloading from Google drive.
How are you using the weights? Have you tried running the demo first and does that work?
On Fri, Jul 21, 2023 at 4:04 AM Jens Naumann @.***> wrote:
I have the same problem. Loading the model to the CPU instead of the GPU seems to work, but is very slow.
— Reply to this email directly, view it on GitHub https://github.com/EPFL-VILAB/omnidata/issues/53#issuecomment-1645403262, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHLE3JLPGF4PEHT2STU733XRJO4BANCNFSM6AAAAAA2PMYDHI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I have the same problem. Loading the model to the CPU instead of the GPU seems to work, but is very slow. After some testing, I found that the problem only seems to occur on GPUs with certain or perhaps old architectures. On my Ampere-based RTX 3080 everything works fine, but when running the same code on a Pascal-based GTX 1050 Ti the model predicts NaN values.
Thanks for finding out the problem! I have also tested on another machine and it works!
The command used to test:
cd omnidata/omnidata_tools/torch
python demo.py --task normal --img_path assets/demo/test1.png --output_path assets/
What I have tried:
I face the same problem when using the normal model:
I face the same problem
[WORKING] Ubuntu + RTX3090, pytorch 2.0.1, CUDA 11.8 [Not WORKING] Ubuntu + V100, pytorch 2.0.1, CUDA 11.8
[Not WORKING] Ubuntu + V100, pytorch 2.0.1, CUDA 11.8
Hi! I have tried your code to predict normal using the latest v2 model checkpoint, but the outputs are all NaN. I have tried both the model from the script below and from the google drive.
sh ./tools/download_surface_normal_models.sh
The results can be reproduced with this command:
python demo.py --task normal --img_path assets/demo/test1.png --output_path assets/
I have uncommended below lines to use v1 model and there is no issue. Could you check your released weight? Thank you! https://github.com/EPFL-VILAB/omnidata/blob/b927c4189ab80077025706ec2308d465171cb417/omnidata_tools/torch/demo.py#L50-L51