Giter Club home page Giter Club logo

Comments (9)

Mozoloa avatar Mozoloa commented on August 17, 2024

Just got this as well but not sure the source is the same

Traceback (most recent call last):
  File "main.py", line 670, in <module>
    model = load_model_from_config(config, opt.actual_resume)
  File "main.py", line 30, in load_model_from_config
    pl_sd = torch.load(ckpt, map_location="cpu")
  File "/opt/conda/lib/python3.7/site-packages/torch/serialization.py", line 699, in load
    with _open_file_like(f, 'rb') as opened_file:
  File "/opt/conda/lib/python3.7/site-packages/torch/serialization.py", line 230, in _open_file_like
    return _open_file(name_or_buffer, mode)
  File "/opt/conda/lib/python3.7/site-packages/torch/serialization.py", line 211, in __init__
    super(_open_file, self).__init__(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'model.ckpt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 888, in <module>
    if trainer.global_rank == 0:
NameError: name 'trainer' is not defined

from dreambooth-stable-diffusion.

kodxana avatar kodxana commented on August 17, 2024

You do not have stable diffusion model downloaded to directory of the repo :)
You need have model.ckpt in folder.
@Mozoloa

from dreambooth-stable-diffusion.

Mozoloa avatar Mozoloa commented on August 17, 2024

I've always had it since I'm using the same environment since the beginning, that wasn't the glitch.

Apparently, shutting down the kernel and turning it back on was the solution ? odd

from dreambooth-stable-diffusion.

blink18iii avatar blink18iii commented on August 17, 2024

folder ./src/taming_transformers wasn't downloaded.

from dreambooth-stable-diffusion.

jeongsoo56 avatar jeongsoo56 commented on August 17, 2024

try to make your library version same as in enviroment.yaml file

dependencies:

from dreambooth-stable-diffusion.

Airburner avatar Airburner commented on August 17, 2024

Got the same error, and could not find a way to fix it:

File "/venv/lib/python3.10/site-packages/torch/cuda/init.py", line 217, in _lazy_init
torch._C._cuda_init()
RuntimeError: No CUDA GPUs are available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/workspace/Dreambooth-Stable-Diffusion/main.py", line 896, in
if trainer.global_rank == 0:
NameError: name 'trainer' is not defined. Did you mean: 'Trainer'?

from dreambooth-stable-diffusion.

jeongsoo56 avatar jeongsoo56 commented on August 17, 2024

Looks like you are using python 3.10, try python=3.8.10

from dreambooth-stable-diffusion.

Airburner avatar Airburner commented on August 17, 2024

How can I do it when using colab notebook ?

from dreambooth-stable-diffusion.

0xdevalias avatar 0xdevalias commented on August 17, 2024

Potentially related (NameError: name 'trainer' is not defined):


I went to line 896 on Main.py, and changed "trainer" for "Trainer", now it's working

Originally posted by @Pegaxsus in #86 (comment)

from dreambooth-stable-diffusion.

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.