Linaqruf / sd-notebook-collection

210 stars 44 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '/content/cagliostro-colab-ui/config.json' #58

Open muhammadzaid20 opened 12 months ago

muhammadzaid20 commented 12 months ago

FileNotFoundError Traceback (most recent call last) in <cell line: 310>() 308 print_line(80, color="green") 309 --> 310 main()

2 frames in main() 245 prepare_environment() 246 --> 247 configure_output_path(config_file, output_dir, output_subdir) 248 249 print_line(80, color="green")

in configure_output_path(config_path, output_dir, output_subdir) 194 195 def configure_output_path(config_path, output_dir, output_subdir): --> 196 config = config_utils.read_config(config_path) 197 config_updates = { 198 "outdir_txt2img_samples" : os.path.join(output_dir, output_subdir[0]),

/usr/local/lib/python3.10/dist-packages/colablib/utils/config_utils.py in read_config(filename) 36 37 if file_format == "json": ---> 38 with open(filename, "r") as f: 39 config = json.load(f) 40 elif file_format == "yaml" or file_format == "yml":

FileNotFoundError: [Errno 2] No such file or directory: '/content/cagliostro-colab-ui/config.json'

Linaqruf commented 12 months ago

I fixed this problem 3 days ago, if you still encounter this problem I assume you're using copy of the notebook. Please update your copy or use the original one

https://github.com/Linaqruf/sd-notebook-collection/commit/bfb0db41252042fde59dd5ad5bdd1d1d5df1294e