Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dbcabot

macrumors newbie
Original poster
May 30, 2023
1
0
Can anyone help with a filepath / input directory problem:

I am using the Automatic1111 Web UI interface to generate art using Stable Diffusion. This is a way to access Google Colab processing support.

I have >100 mages to upscale.

The UI has a Batch function in a tab of its own, where it says "Process images in a directory on the same machine where the server is running" and it has a text field for me to enter the input directory.

(The UI also says "Use an empty output directory to save pictures normally instead of writing to the output directory.")

I to get the filepath use the Finder command "Copy path to filename" (in Column view).

The filepath that I get looks like this: "/Users/myname/MyDrive/AI_PICS/outputs/"

The error that comes back is always the same:

"FileNotFoundError: [Errno2] No such file of directory: '/Users... [etc]
 
I think the issue might be related to how Google Colab handles file paths. In Colab, the path "/Users/myname/MyDrive/AI_PICS/outputs/" doesn't directly correspond to your local machine's file directory. Instead, it refers to a directory within the virtual environment running on Google's servers.

To access your local files, you need to upload them to your Colab environment or Google Drive, and then use the path as it appears in Colab or Drive.

If you're using Drive, you can mount it in your Colab environment with a few lines of code. Once mounted, you can use the path as it appears in Drive, like "/content/drive/MyDrive/AI_PICS/outputs/".

Hope this helps!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.