New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues getting it to work on CPU only mac (Catalina 10.15.4) #32
Comments
To run with CPU, set |
Hi LemonATsu, I will try the gpu_id = -1 and report back if it works for others. |
Not directly related to the issue, but on the other hand, how do I specify the ID of my GPU (Nvidia GTX1660Ti) and where can I get this ID? Running on Linux. Thanks! |
Try using the command |
For those looking to do this with their mac with CPU only. You'll need more than 16GB of ram (like my machine has). After setting gpu_id = -1, the code would run, but used 8GB according to activity monitor then finally crashed while writing out the first movie file. The error was an explained here: which basically says you need more ram. This was using a picture of dimension 4794 × 3196. I tried with a 300x450, same result. |
tried on mac as well hit a render issue
Will try PyQt5 and share my findings. Planning on running it on ec2, but it's handy to be able debug servers locally. Update took 6:37.36 minutes total, Macbook Pro 2.9Ghz 6-Core Intel i9, peak memory 10.8GB |
I utilize the regular EGL because nvidia-docker supports offscreen rendering (but it took a lot of time to figure this out). I'm hosting it on https://sdan.io/3d for everyone to use! |
I don't think it is possible, but can this run on a CPU only macbook pro? Below is the error output on my last 2013 MBP with retina integrated graphics
Also, if you are running a NVIDIA GPU mac book pro you'll need to change this line
conda install pytorch==1.4.0 torchvision==0.5.0 cudatoolkit==10.1.243 -c pytorch
To this:
conda install pytorch==1.4.0 torchvision==0.5.0 cudatoolkit==9.0 -c pytorch
Output I get on my machine:
initialize
device: cpu
start processing
processing image/4O5A8714.jpg (1/1)
torch.Size([1, 3, 256, 384])
finished
Start Running 3D_Photo ...
Traceback (most recent call last):
File "main.py", line 95, in
depth_feat_model)
File "/Users/tmbouman/Documents/GitHub/3d-photo-inpainting/mesh.py", line 1877, in write_ply
depth_edge_model, depth_feat_model, rgb_model, config, direc="up")
File "/Users/tmbouman/Documents/GitHub/3d-photo-inpainting/mesh_tools.py", line 193, in extrapolate
t_edge = torch.FloatTensor(edge).to(device)[None, None, ...]
File "/Users/tmbouman/anaconda3/envs/3DP/lib/python3.7/site-packages/torch/cuda/init.py", line 196, in _lazy_init
_check_driver()
File "/Users/tmbouman/anaconda3/envs/3DP/lib/python3.7/site-packages/torch/cuda/init.py", line 94, in _check_driver
raise AssertionError("Torch not compiled with CUDA enabled")
The text was updated successfully, but these errors were encountered: