Linaqruf / kohya-trainer

Adapted from https://note.com/kohya_ss/n/nbf7ce8d80f29 for easier cloning
Apache License 2.0
1.83k stars 300 forks source link

BLIP not working anymore (Attempt to free invalid pointer 0x5834ad7a9740) #257

Closed ChrisKorz closed 1 year ago

ChrisKorz commented 1 year ago

Hello ! BLIP hasn't been working for several hours, and I get this message: src/tcmalloc.cc:283] Attempt to free invalid pointer 0x5834ad7a9740 which doesn't appear as an error.

I've done a search and I've found equivalent errors, but the solution I've found isn't adapted to my problem. I don't have the requirements section but dependencies.

The problem is on the kohya-LoRA-dreambooth collab.

Please help me

ChrisKorz commented 1 year ago

My bad, this solution did work, adding those lines in dependencies section

          [as recommended elsewhere](https://github.com/TheLastBen/fast-stable-diffusion/issues/2343) where other found the same error, i commented out the libtcmalloc.so (inside first section)
def prepare_environment():
#    os.environ["LD_PRELOAD"] = "libtcmalloc.so"
    os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
    os.environ["SAFETENSORS_FAST_GPU"] = "1"
    os.environ["PYTHONWARNINGS"] = "ignore"

this fixed the problem for them and it also works here.

Originally posted by @MushroomFleet in https://github.com/Linaqruf/kohya-trainer/issues/255#issuecomment-1642751949