3D-R2N2 icon indicating copy to clipboard operation
3D-R2N2 copied to clipboard

Use own images set to create voxelized shape

Open quintendewilde opened this issue 7 years ago • 9 comments

How can I use a set of own images to create a new (no example based) voxel shape.

I want to use pots (images I have from them to make a 3D voxel shape)

The instruction show only the learning aspect and not how to use the code on new images. Or I'm not fully understanding the shapenet part.

UPDATE

Changed the demo.py code a bit and put some pictures in the imgs directory.

When running python demo.py newobject.obj

I got this error.

Traceback (most recent call last):
  File "demo.py", line 84, in <module>
    main()
  File "demo.py", line 52, in main
    demo_imgs = load_demo_images()
  File "demo.py", line 43, in load_demo_images
    return np.array(ims)
ValueError: could not broadcast input array from shape (3,300,300) into shape (3)

I have no idea what this means.

Tried resizing the images to a smaller width and length but that still gives me the same error.

quintendewilde avatar Nov 19 '17 14:11 quintendewilde

same issue

Metal-joker avatar Nov 25 '17 08:11 Metal-joker

Anything changed? Anybody an idea to train own images??

quintendewilde avatar Jan 15 '18 13:01 quintendewilde

Still no solution

Metal-joker avatar Jan 16 '18 04:01 Metal-joker

The images of training dataset have a shape of (127, 127, 3). So you need to resize your image to this shape so that the network can test the output using you image.

heromanba avatar Mar 06 '18 10:03 heromanba

Convert your images to size 127 x 127.

kitachan avatar Mar 11 '19 07:03 kitachan

I converted the image size to 127 x 127 but still its not working

ramyagopinathpsg avatar Apr 01 '19 08:04 ramyagopinathpsg

Convert your images to size 127 x 127.

its not working when i changed the image size to 127 x 127

ramyagopinathpsg avatar Apr 01 '19 08:04 ramyagopinathpsg