当前位置:   article > 正文

Latent Diffusion Models(LDM)环境配置_openai/clip.git@main#egg=clip

openai/clip.git@main#egg=clip

 Latent Diffusion Models

GitHub - CompVis/latent-diffusion: High-Resolution Image Synthesis with Latent Diffusion Models


LDM环境配置:

pip install pytorch-lightning==1.6.1

pip install torch==1.10.1+cu111 torchvision==0.11.2+cu111 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html

pip install -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers

pip install -e git+https://github.com/openai/CLIP.git@main#egg=clip 

pip uninstall setuptools

pip install setuptools==59.5.0

pip install Pillow==9.5.0

下面这个未安装可能会引起:“NameError: name 'trainer' is not defined” 

 pip install test_tube

  1. #
  2. # Name Version Build Channel
  3. _libgcc_mutex 0.1 main
  4. _openmp_mutex 5.1 1_gnu
  5. absl-py 2.1.0 pypi_0 pypi
  6. aiohttp 3.9.3 pypi_0 pypi
  7. aiosignal 1.3.1 pypi_0 pypi
  8. albumentations 0.4.3 pypi_0 pypi
  9. altair 5.2.0 pypi_0 pypi
  10. antlr4-python3-runtime 4.8 pypi_0 pypi
  11. astunparse 1.6.3 pypi_0 pypi
  12. async-timeout 4.0.3 pypi_0 pypi
  13. attrs 23.2.0 pypi_0 pypi
  14. blas 1.0 mkl
  15. blinker 1.7.0 pypi_0 pypi
  16. ca-certificates 2023.12.12 h06a4308_0
  17. cachetools 5.3.3 pypi_0 pypi
  18. certifi 2024.2.2 pypi_0 pypi
  19. charset-normalizer 3.3.2 pypi_0 pypi
  20. click 8.1.7 pypi_0 pypi
  21. clip 1.0 dev_0 <develop>
  22. cudatoolkit 11.0.221 h6bb024c_0
  23. einops 0.7.0 pypi_0 pypi
  24. filelock 3.13.1 pypi_0 pypi
  25. flatbuffers 24.3.7 pypi_0 pypi
  26. freetype 2.12.1 h4a9f257_0
  27. frozenlist 1.4.1 pypi_0 pypi
  28. fsspec 2024.2.0 pypi_0 pypi
  29. ftfy 6.1.3 pypi_0 pypi
  30. future 1.0.0 pypi_0 pypi
  31. gast 0.4.0 pypi_0 pypi
  32. gitdb 4.0.11 pypi_0 pypi
  33. gitpython 3.1.42 pypi_0 pypi
  34. google-auth 2.28.2 pypi_0 pypi
  35. google-auth-oauthlib 0.4.6 pypi_0 pypi
  36. google-pasta 0.2.0 pypi_0 pypi
  37. grpcio 1.62.1 pypi_0 pypi
  38. h5py 3.10.0 pypi_0 pypi
  39. huggingface-hub 0.21.4 pypi_0 pypi
  40. idna 3.6 pypi_0 pypi
  41. imageio 2.9.0 pypi_0 pypi
  42. imageio-ffmpeg 0.4.2 pypi_0 pypi
  43. imgaug 0.2.6 pypi_0 pypi
  44. importlib-metadata 7.0.2 pypi_0 pypi
  45. importlib-resources 6.1.3 pypi_0 pypi
  46. intel-openmp 2021.4.0 h06a4308_3561
  47. jinja2 3.1.3 pypi_0 pypi
  48. joblib 1.3.2 pypi_0 pypi
  49. jpeg 9e h5eee18b_1
  50. jsonschema 4.21.1 pypi_0 pypi
  51. jsonschema-specifications 2023.12.1 pypi_0 pypi
  52. keras 2.11.0 pypi_0 pypi
  53. kornia 0.6.4 pypi_0 pypi
  54. latent-diffusion 0.0.1 dev_0 <develop>
  55. lazy-loader 0.3 pypi_0 pypi
  56. lcms2 2.12 h3be6417_0
  57. ld_impl_linux-64 2.38 h1181459_1
  58. lerc 3.0 h295c915_0
  59. libclang 16.0.6 pypi_0 pypi
  60. libdeflate 1.17 h5eee18b_1
  61. libffi 3.3 he6710b0_2
  62. libgcc-ng 11.2.0 h1234567_1
  63. libgfortran-ng 11.2.0 h00389a5_1
  64. libgfortran5 11.2.0 h1234567_1
  65. libgomp 11.2.0 h1234567_1
  66. libpng 1.6.39 h5eee18b_0
  67. libstdcxx-ng 11.2.0 h1234567_1
  68. libtiff 4.5.1 h6a678d5_0
  69. libuv 1.44.2 h5eee18b_0
  70. libwebp-base 1.3.2 h5eee18b_0
  71. lightning-utilities 0.10.1 pypi_0 pypi
  72. lz4-c 1.9.4 h6a678d5_0
  73. markdown 3.5.2 pypi_0 pypi
  74. markdown-it-py 3.0.0 pypi_0 pypi
  75. markupsafe 2.1.5 pypi_0 pypi
  76. mdurl 0.1.2 pypi_0 pypi
  77. mkl 2021.4.0 h06a4308_640
  78. mkl-service 2.4.0 py38h7f8727e_0
  79. mkl_fft 1.3.1 py38hd3c417c_0
  80. mkl_random 1.2.2 py38h51133e4_0
  81. mpmath 1.3.0 pypi_0 pypi
  82. multidict 6.0.5 pypi_0 pypi
  83. ncurses 6.4 h6a678d5_0
  84. networkx 3.1 pypi_0 pypi
  85. ninja 1.10.2 h06a4308_5
  86. ninja-base 1.10.2 hd09550d_5
  87. numpy 1.24.4 pypi_0 pypi
  88. nvidia-cublas-cu12 12.1.3.1 pypi_0 pypi
  89. nvidia-cuda-cupti-cu12 12.1.105 pypi_0 pypi
  90. nvidia-cuda-nvrtc-cu12 12.1.105 pypi_0 pypi
  91. nvidia-cuda-runtime-cu12 12.1.105 pypi_0 pypi
  92. nvidia-cudnn-cu12 8.9.2.26 pypi_0 pypi
  93. nvidia-cufft-cu12 11.0.2.54 pypi_0 pypi
  94. nvidia-curand-cu12 10.3.2.106 pypi_0 pypi
  95. nvidia-cusolver-cu12 11.4.5.107 pypi_0 pypi
  96. nvidia-cusparse-cu12 12.1.0.106 pypi_0 pypi
  97. nvidia-nccl-cu12 2.19.3 pypi_0 pypi
  98. nvidia-nvjitlink-cu12 12.4.99 pypi_0 pypi
  99. nvidia-nvtx-cu12 12.1.105 pypi_0 pypi
  100. oauthlib 3.2.2 pypi_0 pypi
  101. omegaconf 2.1.1 pypi_0 pypi
  102. opencv-python 4.1.2.30 pypi_0 pypi
  103. opencv-python-headless 4.9.0.80 pypi_0 pypi
  104. openjpeg 2.4.0 h3ad879b_0
  105. openssl 1.1.1w h7f8727e_0
  106. opt-einsum 3.3.0 pypi_0 pypi
  107. packaging 23.2 pypi_0 pypi
  108. pandas 2.0.3 pypi_0 pypi
  109. pillow 10.2.0 py38h5eee18b_0
  110. pip 20.3.3 py38h06a4308_0
  111. pkgutil-resolve-name 1.3.10 pypi_0 pypi
  112. protobuf 3.19.6 pypi_0 pypi
  113. pudb 2019.2 pypi_0 pypi
  114. pyarrow 15.0.1 pypi_0 pypi
  115. pyasn1 0.5.1 pypi_0 pypi
  116. pyasn1-modules 0.3.0 pypi_0 pypi
  117. pydeck 0.8.1b0 pypi_0 pypi
  118. pydeprecate 0.3.1 pypi_0 pypi
  119. pygments 2.17.2 pypi_0 pypi
  120. python 3.8.5 h7579374_1
  121. python-dateutil 2.9.0.post0 pypi_0 pypi
  122. pytorch-lightning 1.6.1 pypi_0 pypi
  123. pytz 2024.1 pypi_0 pypi
  124. pywavelets 1.4.1 pypi_0 pypi
  125. pyyaml 6.0.1 pypi_0 pypi
  126. readline 8.2 h5eee18b_0
  127. referencing 0.33.0 pypi_0 pypi
  128. regex 2023.12.25 pypi_0 pypi
  129. requests 2.31.0 pypi_0 pypi
  130. requests-oauthlib 1.3.1 pypi_0 pypi
  131. rich 13.7.1 pypi_0 pypi
  132. rpds-py 0.18.0 pypi_0 pypi
  133. rsa 4.9 pypi_0 pypi
  134. sacremoses 0.1.1 pypi_0 pypi
  135. scann 1.2.9 pypi_0 pypi
  136. scikit-image 0.20.0 pypi_0 pypi
  137. scipy 1.9.1 pypi_0 pypi
  138. setuptools 59.5.0 pypi_0 pypi
  139. six 1.16.0 pyhd3eb1b0_1
  140. smmap 5.0.1 pypi_0 pypi
  141. sqlite 3.41.2 h5eee18b_0
  142. streamlit 1.32.0 pypi_0 pypi
  143. sympy 1.12 pypi_0 pypi
  144. taming-transformers 0.0.1 dev_0 <develop>
  145. tenacity 8.2.3 pypi_0 pypi
  146. tensorboard 2.11.2 pypi_0 pypi
  147. tensorboard-data-server 0.6.1 pypi_0 pypi
  148. tensorboard-plugin-wit 1.8.1 pypi_0 pypi
  149. tensorflow 2.11.1 pypi_0 pypi
  150. tensorflow-estimator 2.11.0 pypi_0 pypi
  151. tensorflow-io-gcs-filesystem 0.34.0 pypi_0 pypi
  152. termcolor 2.4.0 pypi_0 pypi
  153. test-tube 0.7.5 pypi_0 pypi
  154. tifffile 2023.7.10 pypi_0 pypi
  155. tk 8.6.12 h1ccaba5_0
  156. tokenizers 0.12.1 pypi_0 pypi
  157. toml 0.10.2 pypi_0 pypi
  158. toolz 0.12.1 pypi_0 pypi
  159. torch 1.10.1+cu111 pypi_0 pypi
  160. torch-fidelity 0.3.0 pypi_0 pypi
  161. torchaudio 0.10.1+cu111 pypi_0 pypi
  162. torchmetrics 1.3.1 pypi_0 pypi
  163. torchvision 0.11.2+cu111 pypi_0 pypi
  164. tornado 6.4 pypi_0 pypi
  165. tqdm 4.66.2 pypi_0 pypi
  166. transformers 4.19.2 pypi_0 pypi
  167. triton 2.2.0 pypi_0 pypi
  168. typing_extensions 4.9.0 py38h06a4308_1
  169. tzdata 2024.1 pypi_0 pypi
  170. urllib3 2.2.1 pypi_0 pypi
  171. urwid 2.6.8 pypi_0 pypi
  172. watchdog 4.0.0 pypi_0 pypi
  173. wcwidth 0.2.13 pypi_0 pypi
  174. werkzeug 3.0.1 pypi_0 pypi
  175. wheel 0.41.2 py38h06a4308_0
  176. wrapt 1.16.0 pypi_0 pypi
  177. xz 5.4.6 h5eee18b_0
  178. yarl 1.9.4 pypi_0 pypi
  179. zipp 3.17.0 pypi_0 pypi
  180. zlib 1.2.13 h5eee18b_0
  181. zstd 1.5.5 hc292b87_0

错误:

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

去看:【异常错误】debug过程应该先移除try...Except的内容再进行debug-CSDN博客 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/524334
推荐阅读
相关标签
  

闽ICP备14008679号