Summary:
below code will not work
os.makedirs('output', exist_ok=True)
def compute():
this code works
def compute():
os.makedirs('output', exist_ok=True)
if we connect any view block to see the result saved in new directory, the first code will throw an error, dir not found, and also the saved results are not viewed in history folder.
second code will work.
Expected behavior:
regardless of where we create the new directory either inside or outside of the compute function, it must not affect the saved output.
Actual behavior:
fail to see the saved images/audio etc which is saved in the block, because the new directory is created outside of compute function.
Steps to reproduce:
-
Take canny edge pipeline.
-
make a new directory outside of compute function and save the result images in that new directory
-
you will see an error in view image block that dir not found.
-
make the same new directory, but this time inside the compute function
-
see the result in view block.
Zetaforge version:
0.4.0
Operating System
Windows
Other operating system:
No response
Logs:
Recording:
No response
Anything else?:
No response
Summary:
below code will not work
this code works
if we connect any view block to see the result saved in new directory, the first code will throw an error, dir not found, and also the saved results are not viewed in history folder.
second code will work.
Expected behavior:
regardless of where we create the new directory either inside or outside of the compute function, it must not affect the saved output.
Actual behavior:
fail to see the saved images/audio etc which is saved in the block, because the new directory is created outside of compute function.
Steps to reproduce:
Take canny edge pipeline.
make a new directory outside of compute function and save the result images in that new directory
you will see an error in view image block that dir not found.
make the same new directory, but this time inside the compute function
see the result in view block.
Zetaforge version:
0.4.0
Operating System
Windows
Other operating system:
No response
Logs:
Recording:
No response
Anything else?:
No response