apple / ml-neuman

Official repository of NeuMan: Neural Human Radiance Field from a Single Video (ECCV 2022)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about method read_data_to_ram

buaacyw opened this issue · comments

Thanks for your great work!
I really don't understand what is the below method used for and I haven't found it on the Internet. Could you please help me? Why this can load data to ram? Is this different from directly using self.image? Thanks!
94bdad3393eccd0cc67da51cc0c6ec4

Hi, self.image and self._image are two different variables. self._image is the actual storage of the data, self.image is an on-demand property.
In this code, we first call the property to read the image, and store in to self._image variable, so it is in the memory.

You can simplify it to

self._image = self.image

Thanks! I understand!