티스토리 뷰

https://blog.naver.com/PostView.naver?blogId=hannaurora&logNo=223089905318&parentCategoryNo=&categoryNo=50&viewDate=&isShowPopularPosts=true&from=search

 

DreamBooth | AI에 내 그림체 학습 시키기, 인공지능으로 일러스트 그리기

[DreamBooth 결과물] ▶ [일러스트 작품] 위 이미지는 드림부스에 저의 그림체를 학습시켜서 나온 결과물...

blog.naver.com

 

 

1. 마운트 에러 (경로마지막에 /여부)

https://stackoverflow.com/questions/54230871/google-colab-valueerror-mountpoint-must-be-in-a-directory-that-exists

 

Google Colab-ValueError: Mountpoint must be in a directory that exists

I want to mount google drive on google Colab and I am using this command to mount the drive from google.colab import drive drive.mount('/content/drive/') but I am getting this error ValueError ...

stackoverflow.com

--

test model 에서 마지막 한 줄에 자꾸 에러가 나서 이부분은 따로 분리해 실행했다.

 

!python /content/gdrive/MyDrive/sd/stable-diffusion-$blasphemy/webui.py $share --ckpt "$path_to_trained_model" $auth $configf

 

2. AttributeError: partially initialized module 'charset_normalizer' has no attribute 'md__mypyc'

!pip install --upgrade charset_normalizer

3. AttributeError: module 'gradio' has no attribute 'Button'

!pip uninstall gradio -y
!pip install gradio==4.8.0
 
4. mportError: cannot import name 'validate_core_schema' from 'pydantic_core'
--

!pip uninstall pydantic_core -y
!pip install --upgrade pydantic_core
 

 

5. ImportError: cannot import name 'Undefined' from 'pydantic.fields' (/usr/local/lib/python3.10/dist-packages/pydantic/fields.py)

!pip install pydantic==1.10.11

 

6. ImportError: cannot import name 'ComponentDefinitionError' from 'gradio.exceptions' (/usr/local/lib/python3.10/dist-packages/gradio/exceptions.py)

 

!pip uninstall gradio -y
!pip install gradio==4.8.0

 

 

7. ModuleNotFoundError: No module named 'cchardet'

pip install cchardet

 

 

 

8.그런데 정작 위 에러는 순환해서 일어나며 해결되지 않았고 알고보니 

모든 학습이미지에 caption(labeling) 하는 구간이 있더라 Optional 이라고 해서 넘어갔었는데 같이 하던 친구가 캡셔닝하는 걸 보고 나도 같이 했는데 에러가 해결되었다. 

 

*그런데 내가 넣은 그림체는 하나도 적용되지 않았음ㅋㅋㅋㅋ

 

-힘들었던 점

 - 무슨 연결이 그렇게 빨리 끊어지는 지 모르겠다 아마 이것저것 설치해서 한계를 넘으니까 그런듯 

 - 하나라도 실수하면 처음부터 다시해야된다.