Skip to content
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

Batch_size>1 breaks lct layers #3

Open
grau4 opened this issue Jan 23, 2021 · 2 comments
Open

Batch_size>1 breaks lct layers #3

grau4 opened this issue Jan 23, 2021 · 2 comments

Comments

@grau4
Copy link

grau4 commented Jan 23, 2021

Hi there!

I've tried to train/evaluate the model defined in deepVoxel.py on my own data, but it either fails assert statements or concat calls within the lct/fk/phasor layers whenever the batch size is bigger than 1. The same happens when running the standalone examples of these modules, provided in "utils_pytorch/". Is there a hack on how to reshape the inputs in order to process large batches? Or is the implementation inherently limited to process inputs one-by-one?

Thank you!
Best

@wenzhengchen
Copy link
Collaborator

Hi,

Actually, we do notice that LCT layer will take a lot of memory. In our experiment, we use a NVIDIA 24G gpu and set batch_size as 3 or 4(I cannot remember clearly). If you use a small memory GPU you may restrict your bs as 1.

To increase, 1) change to a big memory GPU(the easiest way.... LOL) 2) do not use 128 feature resolution. Instead, use feature resolution 64, or 32, but it will lose details.

@syjjsy
Copy link

syjjsy commented Jul 18, 2022

Hi there!

I've tried to train/evaluate the model defined in deepVoxel.py on my own data, but it either fails assert statements or concat calls within the lct/fk/phasor layers whenever the batch size is bigger than 1. The same happens when running the standalone examples of these modules, provided in "utils_pytorch/". Is there a hack on how to reshape the inputs in order to process large batches? Or is the implementation inherently limited to process inputs one-by-one?

Thank you! Best

Hi, I am also trying to train this model by myself, but I seem to have met some problems at present. Could you share some your program?
Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants