-
Notifications
You must be signed in to change notification settings - Fork 615
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
Use index slicing in geometric transformation notebook #3635
Use index slicing in geometric transformation notebook #3635
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
8ccb4ce
to
4422f0c
Compare
Signed-off-by: Joaquin Anton <janton@nvidia.com>
4422f0c
to
db5130d
Compare
Signed-off-by: Joaquin Anton <janton@nvidia.com>
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2022-01-24T11:10:02Z Line #2. import nvidia.dali as dali I think this line can be removed. |
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2022-01-24T11:10:03Z Line #2. def pipe0(): How about |
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2022-01-24T11:10:04Z Line #2. def pipe1():
|
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2022-01-24T11:10:05Z Line #3. jpegs, _ = fn.readers.file(file_root=root_dir, files=image_files) Maybe you can call I would check if it is possible to apply similar reusing in other paragraphs. jantonguirao commented on 2022-01-24T13:22:38Z I can't reuse the basic pipe because the moment I decorate it with pipeline def it produces a pipeline object. I don't think than extracting a function to be used in basic pipe and in the following will help the reader much here. I'd rather repeat those couple of lines in every pipeline for the sake of simplicity |
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2022-01-24T11:10:06Z Line #4. return fn.stack(w, h, axis=0) # ...and concatenate
Maybe we can relay on the default for the simplicity? |
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2022-01-24T11:10:07Z Line #7. def pipe2():
|
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2022-01-24T11:10:07Z Line #2. def pipe3():
|
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2022-01-24T11:10:08Z Line #2. def pipe4():
|
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2022-01-24T11:10:09Z Line #2. def pipe5():
|
View / edit / reply to this conversation on ReviewNB JanuszL commented on 2022-01-24T11:10:10Z Line #2. def pipe6():
|
I can't reuse the basic pipe because the moment I decorate it with pipeline def it produces a pipeline object. I don't think than extracting a function to be used in basic pipe and in the following will help the reader much here. I'd rather repeat those couple of lines in every pipeline for the sake of simplicity View entire conversation on ReviewNB |
Signed-off-by: Joaquin Anton <janton@nvidia.com>
!build |
CI MESSAGE: [3831984]: BUILD STARTED |
CI MESSAGE: [3831984]: BUILD PASSED |
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton <janton@nvidia.com>
Signed-off-by: Joaquin Anton janton@nvidia.com
Description
What happened in this PR
Updates geometric transformation notebook to showcase index slicing
Additional information
NA
NA
Checklist
Tests
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A