Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Running on local URL: http://127.0.0.1:7860
- To create a public link, set `share=True` in `launch()`.
- /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`.
- warnings.warn(
- 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.
- Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
- Loading checkpoint shards: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6/6 [00:21<00:00, 3.61s/it]
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
- To disable this warning, you can either:
- - Avoid using `tokenizers` before the fork if possible
- - Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)
- Traceback (most recent call last):
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/queueing.py", line 567, in process_events
- response = await route_utils.call_process_api(
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/route_utils.py", line 270, in call_process_api
- output = await app.get_blocks().process_api(
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/blocks.py", line 1908, in process_api
- result = await self.call_function(
- ^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/blocks.py", line 1497, in call_function
- prediction = await utils.async_iteration(iterator)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/utils.py", line 632, in async_iteration
- return await iterator.__anext__()
- ^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/utils.py", line 625, in __anext__
- return await anyio.to_thread.run_sync(
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
- return await get_async_backend().run_sync_in_worker_thread(
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
- return await future
- ^^^^^^^^^^^^
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 859, in run
- result = context.run(func, *args)
- ^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/utils.py", line 608, in run_sync_iterator_async
- return next(iterator)
- ^^^^^^^^^^^^^^
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/gradio/utils.py", line 791, in gen_wrapper
- response = next(iterator)
- ^^^^^^^^^^^^^^
- File "/Users/user/Developer/DeTikZify/detikzify/webui/webui.py", line 143, in inference
- tikzdocs.add(*async_result.get())
- ^^^^^^^^^^^^^^^^^^
- File "/Users/user/.pyenv/versions/3.12.3/lib/python3.12/multiprocessing/pool.py", line 774, in get
- raise self._value
- File "/Users/user/.pyenv/versions/3.12.3/lib/python3.12/multiprocessing/pool.py", line 125, in worker
- result = (True, func(*args, **kwds))
- ^^^^^^^^^^^^^^^^^^^
- File "/Users/user/Developer/DeTikZify/detikzify/webui/webui.py", line 136, in <lambda>
- func=lambda: next(iterator),
- ^^^^^^^^^^^^^^
- File "/Users/user/Developer/DeTikZify/detikzify/infer/generate.py", line 393, in simulate
- yield from generator.simulate(expansions or None)
- File "/Users/user/Developer/DeTikZify/detikzify/infer/generate.py", line 183, in simulate
- self.montecarlo.simulate()
- File "/Users/user/Developer/DeTikZify/detikzify/mcts/montecarlo.py", line 66, in simulate
- self.expand(current_node)
- File "/Users/user/Developer/DeTikZify/detikzify/mcts/montecarlo.py", line 70, in expand
- self.child_finder(node, self)
- File "/Users/user/Developer/DeTikZify/detikzify/infer/generate.py", line 286, in child_finder
- score = self.score(tikz.rasterize()) if scorable else -1 # type: ignore
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/Developer/DeTikZify/detikzify/util/functools.py", line 36, in __call__
- return self.cast_func(cast_func(*args, **kwargs))
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/Developer/DeTikZify/detikzify/util/functools.py", line 24, in cast_func
- return self.func(self.instance, *self.args, **self.kwargs)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/Developer/DeTikZify/detikzify/infer/generate.py", line 244, in score
- self.metric.update(image, self.image)
- File "/Users/user/.pyenv/versions/my_sandbox2/lib/python3.12/site-packages/torchmetrics/metric.py", line 466, in wrapped_func
- update(*args, **kwargs)
- File "/Users/user/Developer/DeTikZify/detikzify/evaluate/imagesim.py", line 106, in update
- self.score += self.get_similarity(*pair)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/Users/user/Developer/DeTikZify/detikzify/evaluate/imagesim.py", line 93, in get_similarity
- return F.cosine_similarity(img1_feats.double(), img2_feats.double(), dim=0).item()
- ^^^^^^^^^^^^^^^^^^^
- TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
Advertisement
Add Comment
Please, Sign In to add comment