Coder Social home page Coder Social logo

Comments (8)

H256 avatar H256 commented on August 16, 2024

Hi @GiusTex , I had the same problem. The instructions in the extension repo are a little unclear 😉 ,as I am also on Windows, here's what solved it for me:

  1. Put the absolute path into the gui, Train Model -> Settings -> Concept Lists: X:\dreambooth\concepts\concepts_list.json
  2. inside the JSON file, use the following format for the path entries:
{
		"instance_prompt": "photo of blah woman",
		"class_prompt": "photo of a woman",
		"instance_data_dir": "X:/dreambooth/path_to_instance_dir/subfolder",
		"class_data_dir": "X:/dreambooth/path_to_class_regularization_dir/woman"
	},

With these settings, training runs even with multiple concepts. At least for me. :)
The trick here was to use absolute paths in JSON.

from sd_dreambooth_extension.

GiusTex avatar GiusTex commented on August 16, 2024

It doesn't work for me, I tried "X:\path\to\concepts_list.json", "C:\path\to\concepts_list.json", "C:\ \path\ \to\ \concepts_list.json" (without the spaces, it's just to make them appear in the comment), and "C:/path/to/concepts_list.json", all them with the absolute paths inside the json file with {[...]} and also with {...} as in your example, but I keep getting error

from sd_dreambooth_extension.

d8ahazard avatar d8ahazard commented on August 16, 2024

It doesn't work for me, I tried "X:\path\to\concepts_list.json", "C:\path\to\concepts_list.json", "C:\ \path\ \to\ \concepts_list.json" (without the spaces, it's just to make them appear in the comment), and "C:/path/to/concepts_list.json", all them with the absolute paths inside the json file with {[...]} and also with {...} as in your example, but I keep getting error

With JSON, you need to either use forward slashes "/", or escape your backslashes by doubling them "\\".

So, for your example, it should be "X:\\path\\to\\concepts_list.json".

Edit, Ironically, even on github, I have to type 4 backslashes to get it to print 2.

from sd_dreambooth_extension.

GiusTex avatar GiusTex commented on August 16, 2024

It doesn't work for me, I tried "X:\path\to\concepts_list.json", "C:\path\to\concepts_list.json", "C:\ \path\ \to\ \concepts_list.json" (without the spaces, it's just to make them appear in the comment), and "C:/path/to/concepts_list.json", all them with the absolute paths inside the json file with {[...]} and also with {...} as in your example, but I keep getting error

With JSON, you need to either use forward slashes "/", or escape your backslashes by doubling them "\".

So, for your example, it should be "X:\path\to\concepts_list.json".

Edit, Ironically, even on github, I have to type 4 backslashes to get it to print 2.

I already did it (X:\\path\\json and also X:/path/json), as I wrote above, and it didn't work..

from sd_dreambooth_extension.

vgaggia avatar vgaggia commented on August 16, 2024

try right clicking the folder in windows and click copy as path, try to use that.

from sd_dreambooth_extension.

d8ahazard avatar d8ahazard commented on August 16, 2024

This should be resolved, both with spaces in the path and loading JSON from the UI. Please open a new issue if you have further problems.

from sd_dreambooth_extension.

Jonseed avatar Jonseed commented on August 16, 2024

Hi @GiusTex , I had the same problem. The instructions in the extension repo are a little unclear 😉 ,as I am also on Windows, here's what solved it for me:

  1. Put the absolute path into the gui, Train Model -> Settings -> Concept Lists: X:\dreambooth\concepts\concepts_list.json
  2. inside the JSON file, use the following format for the path entries:
{
		"instance_prompt": "photo of blah woman",
		"class_prompt": "photo of a woman",
		"instance_data_dir": "X:/dreambooth/path_to_instance_dir/subfolder",
		"class_data_dir": "X:/dreambooth/path_to_class_regularization_dir/woman"
	},

With these settings, training runs even with multiple concepts. At least for me. :) The trick here was to use absolute paths in JSON.

Does the JSON file need an opening and closing square bracket? That's what the example shows in the Readme.

from sd_dreambooth_extension.

GiusTex avatar GiusTex commented on August 16, 2024

Hi @GiusTex , I had the same problem. The instructions in the extension repo are a little unclear 😉 ,as I am also on Windows, here's what solved it for me:

  1. Put the absolute path into the gui, Train Model -> Settings -> Concept Lists: X:\dreambooth\concepts\concepts_list.json
  2. inside the JSON file, use the following format for the path entries:
{
		"instance_prompt": "photo of blah woman",
		"class_prompt": "photo of a woman",
		"instance_data_dir": "X:/dreambooth/path_to_instance_dir/subfolder",
		"class_data_dir": "X:/dreambooth/path_to_class_regularization_dir/woman"
	},

With these settings, training runs even with multiple concepts. At least for me. :) The trick here was to use absolute paths in JSON.

Does the JSON file need an opening and closing square bracket? That's what the example shows in the Readme.

I already tried with the square brackets (it's in my first comment) and it didn't work, i tried again now and still it doesn't work. I've left for now dreambooth inside webui also beacuse it gives me cuda out of memory (optimized with 8 bit adam), while using normal dreambooth (not the one inside webui) i don't have those errors

from sd_dreambooth_extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.