facade-segmentation icon indicating copy to clipboard operation
facade-segmentation copied to clipboard

Issue when running inference /data/one-file.txt

Open hichem-abdellali opened this issue 7 years ago • 10 comments

I1024 09:59:28.228960   100 net.cpp:248] Memory required for data: 1065139200
/usr/local/lib/python2.7/dist-packages/skimage/transform/_warps.py:84: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15.
  warn("The default mode, 'constant', will be changed to 'reflect' in "
F1024 09:59:37.120355   100 syncedmem.cpp:51] Check failed: error == cudaSuccess (2 vs. 0)  out of memory
*** Check failure stack trace: ***
1 of 1/usr/bin/inference: line 37:   100 Aborted                 (core dumped) python -m pyfacades --plot --resume --no-use-mask --output "${OUTPUT}" --files $1
updating: output/one-file/one-file.txt (deflated 28%)

hichem-abdellali avatar Oct 24 '17 10:10 hichem-abdellali

It looks like your GPU is out of memory. I will look into providing a CPU flag, and try to document how much memory it needs. We have used this on GTX1070, GTX1080, and K40s..

jfemiani avatar Oct 24 '17 12:10 jfemiani

Thanks for replying, I would also ask you kindly if you can explain the results made by this code briefly or how to interpret it (I was able to run this code on an Amazon instance with 12 GiB GPU Memory, my machine has 2 Gib GPU Memory) Thanks

hichem-abdellali avatar Oct 25 '17 08:10 hichem-abdellali

This is repository is part of a project I did with a colleague to reconstruct 3D buildings. I output a .yml file that includes the estimated bounding boxes of a variety of facade elements captured from google street-view images. The output folder also includes a variety of diagnostic images, including a probability mask for each image that shows the probability that each pixel is of a certain type (e.g. window, door, etc.). The .yml file is not really documented (at least not yet) but I hope it is decipherable anyhow.

It may be useful to try and run jupyter notebook from within the docker container, and look at the scripts/process.ipynb file. I added a bit to the README.md explaining how to launch the notebook server, hopefully seeing the notebook might give a bit more insight into how to understand the result.

jfemiani avatar Oct 25 '17 20:10 jfemiani

Hi, Thanks for replying, I read the paper and it's clear now I have just one more additional question What the meta.txt file is contained and how did you produce the mask for the input? Thanks :)

hichem-abdellali avatar Oct 30 '17 16:10 hichem-abdellali

@djidan10 Hi, Could you send a image of facade-segmentation that you pulled earlier to me ? I pull the image later and found that there are some problem with the image ...

zzqstar avatar Jan 10 '18 09:01 zzqstar

Here -- I tested it and I live-streamed to YouTube. The audio is bad, but I show the whole process I think.

I found that the dockerhub jfemiani/segnet-facade:cuda8-cudnn3 tag needed a 'git pull' to bring it up to date with the git repo. Both the latest and cuda8-cudnn3 images are now up to date with github.

Ideally it would automatically update, but since I cannot build the images without a GPU setup I have to manually commit the images if I ever edit the git repo.

https://www.youtube.com/watch?v=lKyFnZ6ThTo

On Wed, Jan 10, 2018 at 4:26 AM, zzqstar [email protected] wrote:

@djidan10 https://github.com/djidan10 Hi, Could you send a image of facade-segmentation that you pulled earlier to me ? I pull the image later and found that there are some problem with the image ...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jfemiani/facade-segmentation/issues/1#issuecomment-356547606, or mute the thread https://github.com/notifications/unsubscribe-auth/ACq7F3AO1SmyQtsMEzwxK_GyNnIin5oMks5tJIJHgaJpZM4QEKUi .

jfemiani avatar Jan 10 '18 15:01 jfemiani

Thank you very much! A more question involved that the gpu devices can't be detected even run as nvidia-docker ("nvidia-smi" comman not found in the container ), many methods having been tried but the problem still exists. Is there a rigidity requirement of the gpu version(like Tesla that you are using) or gpu memory(the gpu can't be detected with a gpu memory less than certain threhold)? Thank you!

zzqstar avatar Jan 12 '18 08:01 zzqstar

Not that I am aware of. You should be able to use the cpu if the gpu is giving you trouble.

On Jan 12, 2018 3:50 AM, "zzqstar" [email protected] wrote:

Thank you very much! A more question involved that the gpu devices can't be detected even run as nvidia-docker ("nvidia-smi" comman not found in the container ), many methods having been tried but the problem still exists. Is there a rigidity requirement of the gpu version(like Tesla that you are using) or gpu memory(the gpu can't be detected with a gpu memory less than certain threhold)? Thank you!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jfemiani/facade-segmentation/issues/1#issuecomment-357178713, or mute the thread https://github.com/notifications/unsubscribe-auth/ACq7F_u38j2V9asptqhi3y0FpUxvIKUjks5tJxzwgaJpZM4QEKUi .

jfemiani avatar Jan 12 '18 11:01 jfemiani

@zzqstar Were you able to use the GPU? One thing I have found is that sadly there is some coupling between the nvidia drivers and libraries on the host and in the docker container you are running.

jfemiani avatar Feb 09 '18 14:02 jfemiani

Yeah, @jfemiani thank you very much! I cannot use the GPU now. The problem is not solved yet. What's the coupling bewteen the nvidia drivers and libraries no the host?

zzqstar avatar Feb 26 '18 04:02 zzqstar