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

Colab FileNotFoundError #1

Closed
PavelGrigorev opened this issue Feb 14, 2022 · 8 comments
Closed

Colab FileNotFoundError #1

PavelGrigorev opened this issue Feb 14, 2022 · 8 comments

Comments

@PavelGrigorev
Copy link

Hey, Yael-Vinker!
I faced NotFound error running Colab :
FileNotFoundError: [Errno 2] No such file or directory: '/content/CLIPasso/output_sketches/camel//camel_32strokes_seed0/config.npy'
and wonder what is supposed to be there?

@yael-vinker
Copy link
Owner

Hello Pavel, thanks for your interest in our work!
This file should appear after the successful creation of a single sketch (with seed0), receiving this exception means that something went wrong when running the code previously.

Can you please provide more details about the error?

  1. In which of the stages did it happen? (stage 2 or 3)
  2. Can you please share the full exception traceback? (i.e. the entire output you received before this line)

@Quasimondo
Copy link

I am getting the same error when trying to follow the quick start example that uses run_object_sketching.py - it seems to be connected with the f"{something}" string formatting in some of the logging/saving utils (maybe it is a python version issue?)

@Quasimondo
Copy link

Quasimondo commented Feb 14, 2022

If it is of any help for someone else I found the cause of the error in my case - there is a hardcoded "python" command inside the run_object_sketching.py code which in my case launches a python 2 instance since my machine uses "python3" to run python3 - this also caused the string related errors.

So renaming
exit_codes.append(sp.run(["python", "painterly_rendering.py", target,
to
exit_codes.append(sp.run(["python3", "painterly_rendering.py", target,

in run_object_sketching.py fixed it for me

@04RR
Copy link

04RR commented Feb 14, 2022

Hey I encountered same issue.

@yael-vinker
Copy link
Owner

@PavelGrigorev did you restart the runtime after stage 1? with "Runtime > Restart runtime"
If not, please try to restart the runtime and then rerun stage 2 - please let me know if it worked.
If you did, can you please tell me if you see any files under "output_sketches/camel"?

@PavelGrigorev
Copy link
Author

PavelGrigorev commented Feb 14, 2022

I got it!!!
I did not restart the kernel in stage 1
Now it works fine!
thank you for sharing your awesome work!

@yael-vinker
Copy link
Owner

@PavelGrigorev great! thanks for your update :)

@yael-vinker
Copy link
Owner

Hi @jthteo, note that I opened a new issue for your response as you used Docker and not colab, so you experienced a different issue :) please reply on the new thread.

Same for @04RR - please provide more details on your environment (docker? colab? pip?) in a new related issue, in case you used colab, and you had the same problem as Pavel's, ignore this comment :)

escialom pushed a commit to escialom/sparsifier that referenced this issue Jul 1, 2024
minimal angle for phosphene locations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants