Comments (6)
Annotate or delete this code:
render_mode = 'nerf' # you can change this to 'stf'
size = 64 # this is the size of the renders; higher values take longer to render.
cameras = create_pan_cameras(size, device)
for i, latent in enumerate(latents):
images = decode_latent_images(xm, latent, cameras, rendering_mode=render_mode)
display(gif_widget(images))
from shap-e.
I ran the model on google colab, and the memory needed to run it was around 7.6GB. I don't think there is an option now to reduce it to 4GB. If you want to try this model, this is link to my Google colab where I tested it
from shap-e.
You can try lowering the batch_size
parameter, eg.
batch_size = 1
from shap-e.
unfortunately it doesnt helps:
OutOfMemoryError: CUDA out of memory. Tried to allocate 768.00 MiB (GPU 0; 8.00 GiB total capacity; 6.14 GiB already allocated; 0 bytes free; 6.91 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
from shap-e.
Annotate or delete this code:
render_mode = 'nerf' # you can change this to 'stf'
size = 64 # this is the size of the renders; higher values take longer to render.
cameras = create_pan_cameras(size, device)
for i, latent in enumerate(latents):
images = decode_latent_images(xm, latent, cameras, rendering_mode=render_mode)
display(gif_widget(images))
Thank you very much, it works!
from shap-e.
Hello! I have NVIDIA GeForce GTX 1650 with 4 GB of video memory.
I have this error:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 4.00 GiB total capacity; 3.47 GiB already allocated; 0 bytes free; 3.47 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
I have tried this:
- decrease the value of
max_split_size_mb
; - reduce the value of
batch_size
to one`; - remove the code proposed by MethodJiao;
But none of the above helped solve the problem.
Just in case:
- Processor: HexaCore AMD Ryzen 5 3600, 3600 MHz (36 x 100)
- RAM: 32 GB
- OS: Windows 10
from shap-e.
Related Issues (20)
- How to control number of 3D model faces? HOT 3
- Conditioning on text AND image at the same time?
- ModuleNotFoundError: No module named 'torch' HOT 1
- RuntimeError: Not compiled with GPU support
- ‘Str’ object has no attribute device
- RuntimeError in sample_image_to_3d.ipnb HOT 2
- Encoder can only fit 1 obj?
- need setup.py adding pytorch3d by default installation HOT 2
- How to render images with white background? HOT 1
- When will Shap-e be added to Openai's API?
- how to create obj(not per-vertex colored) legacy and material (mtl) file and texture map files from the obj?? HOT 1
- Extremely weird bug like easter egg with the very prompt "apple"
- RuntimeError: Not compiled with GPU support
- Issue on image-3D:takes very long time and big memory sometimes
- The angles and size of the generated image-3d point cloud
- encode_model throws output file error HOT 2
- Beu
- Generate point cloud
- How to calculate multiview point clouds and how to implement "Patch emb"?
- 3d HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shap-e.