Hello, is it possible to pass in an in-memory coll...
# kotlindl
a
Hello, is it possible to pass in an in-memory collection of byte arrays representing a batch of images inside preprocessing
Loading
instead of a File on disk? Or since
preprocessing()
can only be applied to 1 file usually then I guess we could say a ByeArray.
z
Unfortunately, no, it's hardcoded but could be easily fixed. So I suggest you create an issue and describe desired inputs for the preprocessing, highly likely that it could be fixed in the 0.4. Probably I need some help with the test data for this.
👍 1
a
@zaleslaw FYI I created an issue https://github.com/JetBrains/KotlinDL/issues/321 And I created a draft PR https://github.com/JetBrains/KotlinDL/pull/320 I still need to figure out how to adapt
OnHeapDataset
and
OnFlyImageDataset
. Also, I can help with the tests as well, once we get a design down I can help writing unit tests and also test it in the real world.
👍 1