Guest User

Untitled

a guest
May 30th, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.50 KB | None | 0 0
  1. Running on local URL: http://127.0.0.1:7860
  2.  
  3. To create a public link, set `share=True` in `launch()`.
  4. /Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  5. warnings.warn(
  6. You are using a model of type detikzify to instantiate a model of type . This is not supported for all configurations of models and can yield errors.
  7. Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
  8. Loading checkpoint shards: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6/6 [00:21<00:00, 3.61s/it]
  9. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  10. To disable this warning, you can either:
  11. - Avoid using `tokenizers` before the fork if possible
  12. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  13. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  14. To disable this warning, you can either:
  15. - Avoid using `tokenizers` before the fork if possible
  16. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  17. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  18. To disable this warning, you can either:
  19. - Avoid using `tokenizers` before the fork if possible
  20. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  21. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  22. To disable this warning, you can either:
  23. - Avoid using `tokenizers` before the fork if possible
  24. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  25. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  26. To disable this warning, you can either:
  27. - Avoid using `tokenizers` before the fork if possible
  28. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  29. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  30. To disable this warning, you can either:
  31. - Avoid using `tokenizers` before the fork if possible
  32. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  33. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  34. To disable this warning, you can either:
  35. - Avoid using `tokenizers` before the fork if possible
  36. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  37. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  38. To disable this warning, you can either:
  39. - Avoid using `tokenizers` before the fork if possible
  40. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  41. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  42. To disable this warning, you can either:
  43. - Avoid using `tokenizers` before the fork if possible
  44. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  45. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  46. To disable this warning, you can either:
  47. - Avoid using `tokenizers` before the fork if possible
  48. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  49. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  50. To disable this warning, you can either:
  51. - Avoid using `tokenizers` before the fork if possible
  52. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  53. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  54. To disable this warning, you can either:
  55. - Avoid using `tokenizers` before the fork if possible
  56. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  57. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  58. To disable this warning, you can either:
  59. - Avoid using `tokenizers` before the fork if possible
  60. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  61. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  62. To disable this warning, you can either:
  63. - Avoid using `tokenizers` before the fork if possible
  64. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  65. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  66. To disable this warning, you can either:
  67. - Avoid using `tokenizers` before the fork if possible
  68. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  69. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  70. To disable this warning, you can either:
  71. - Avoid using `tokenizers` before the fork if possible
  72. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  73. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  74. To disable this warning, you can either:
  75. - Avoid using `tokenizers` before the fork if possible
  76. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  77. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  78. To disable this warning, you can either:
  79. - Avoid using `tokenizers` before the fork if possible
  80. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  81. huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
  82. To disable this warning, you can either:
  83. - Avoid using `tokenizers` before the fork if possible
  84. - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
  85. Traceback (most recent call last):
  86. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/queueing.py", line 567, in process_events
  87. response = await route_utils.call_process_api(
  88. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  89. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/route_utils.py", line 270, in call_process_api
  90. output = await app.get_blocks().process_api(
  91. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  92. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/blocks.py", line 1908, in process_api
  93. result = await self.call_function(
  94. ^^^^^^^^^^^^^^^^^^^^^^^^^
  95. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/blocks.py", line 1497, in call_function
  96. prediction = await utils.async_iteration(iterator)
  97. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  98. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/utils.py", line 632, in async_iteration
  99. return await iterator.__anext__()
  100. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  101. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/utils.py", line 625, in __anext__
  102. return await anyio.to_thread.run_sync(
  103. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  104. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
  105. return await get_async_backend().run_sync_in_worker_thread(
  106. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  107. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
  108. return await future
  109. ^^^^^^^^^^^^
  110. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 859, in run
  111. result = context.run(func, *args)
  112. ^^^^^^^^^^^^^^^^^^^^^^^^
  113. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/utils.py", line 608, in run_sync_iterator_async
  114. return next(iterator)
  115. ^^^^^^^^^^^^^^
  116. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/utils.py", line 791, in gen_wrapper
  117. response = next(iterator)
  118. ^^^^^^^^^^^^^^
  119. File "/Users/user/Developer/DeTikZify/detikzify/webui/webui.py", line 143, in inference
  120. tikzdocs.add(*async_result.get())
  121. ^^^^^^^^^^^^^^^^^^
  122. File "/Users/user/.pyenv/versions/3.12.3/lib/python3.12/multiprocessing/pool.py", line 774, in get
  123. raise self._value
  124. File "/Users/user/.pyenv/versions/3.12.3/lib/python3.12/multiprocessing/pool.py", line 125, in worker
  125. result = (True, func(*args, **kwds))
  126. ^^^^^^^^^^^^^^^^^^^
  127. File "/Users/user/Developer/DeTikZify/detikzify/webui/webui.py", line 136, in <lambda>
  128. func=lambda: next(iterator),
  129. ^^^^^^^^^^^^^^
  130. File "/Users/user/Developer/DeTikZify/detikzify/infer/generate.py", line 393, in simulate
  131. yield from generator.simulate(expansions or None)
  132. File "/Users/user/Developer/DeTikZify/detikzify/infer/generate.py", line 183, in simulate
  133. self.montecarlo.simulate()
  134. File "/Users/user/Developer/DeTikZify/detikzify/mcts/montecarlo.py", line 66, in simulate
  135. self.expand(current_node)
  136. File "/Users/user/Developer/DeTikZify/detikzify/mcts/montecarlo.py", line 70, in expand
  137. self.child_finder(node, self)
  138. File "/Users/user/Developer/DeTikZify/detikzify/infer/generate.py", line 286, in child_finder
  139. score = self.score(tikz.rasterize()) if scorable else -1 # type: ignore
  140. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  141. File "/Users/user/Developer/DeTikZify/detikzify/util/functools.py", line 36, in __call__
  142. return self.cast_func(cast_func(*args, **kwargs))
  143. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  144. File "/Users/user/Developer/DeTikZify/detikzify/util/functools.py", line 24, in cast_func
  145. return self.func(self.instance, *self.args, **self.kwargs)
  146. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  147. File "/Users/user/Developer/DeTikZify/detikzify/infer/generate.py", line 244, in score
  148. self.metric.update(image, self.image)
  149. File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/torchmetrics/metric.py", line 466, in wrapped_func
  150. update(*args, **kwargs)
  151. File "/Users/user/Developer/DeTikZify/detikzify/evaluate/imagesim.py", line 106, in update
  152. self.score += self.get_similarity(*pair)
  153. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  154. File "/Users/user/Developer/DeTikZify/detikzify/evaluate/imagesim.py", line 93, in get_similarity
  155. return F.cosine_similarity(img1_feats.double(), img2_feats.double(), dim=0).item()
  156. ^^^^^^^^^^^^^^^^^^^
  157. TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
  158.  
Advertisement
Add Comment
Please, Sign In to add comment