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

output result is not shared / saved when we make new directory outside of compute function. #250

Open
meet-rocking opened this issue Nov 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@meet-rocking
Copy link
Member

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:

  1. Take canny edge pipeline.

  2. make a new directory outside of compute function and save the result images in that new directory

  3. you will see an error in view image block that dir not found.

  4. make the same new directory, but this time inside the compute function

  5. see the result in view block.

Zetaforge version:

0.4.0

Operating System

Windows

Other operating system:

No response

Logs:

n/a

Recording:

No response

Anything else?:

No response

@meet-rocking meet-rocking added the bug Something isn't working label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant