eckertzhang / Text2NeRF

Official implementation of 'Text2NeRF: Text-Driven 3D Scene Generation with Neural Radiance Fields'
MIT License
125 stars 6 forks source link

huggingface/tokenizers ERROR #14

Open CrispyFeSo4 opened 5 months ago

CrispyFeSo4 commented 5 months ago
Epoch 019 Step 00270: psnr: 19.72 l_rgb: 0.010838 l_depth: 0.001648 l_trans: 0.000423: 100%|█| 270/270 [00:31<00:00,  8.49i
9it [00:06,  1.29it/s]psnr: 19.72 l_rgb: 0.010838 l_depth: 0.001648 l_trans: 0.000423: 100%|█| 270/270 [00:31<00:00,  8.60i
120it [01:31,  1.32it/s]
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)
/miniconda3/envs/text2nerf/lib/python3.10/site-packages/numpy/core/fromnumeric.py:3504: RuntimeWarning: Mean of empty slice.
  return _methods._mean(a, axis=axis, dtype=dtype, 
/miniconda3/envs/text2nerf/lib/python3.10/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in scalar divide
  ret = ret.dtype.type(ret / rcount)

I got this error when training the model. Any idea how to resolve this? thanks!!!

CrispyFeSo4 commented 5 months ago

I have solved the problem below

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)

by adding code below to the beginning of text2nerf_main.py

import os
os.environ["TOKENIZERS_PARALLELISM"] = "false"

but the issue below still exists and I cannot solve it

/miniconda3/envs/text2nerf/lib/python3.10/site-packages/numpy/core/fromnumeric.py:3504: RuntimeWarning: Mean of empty slice.
  return _methods._mean(a, axis=axis, dtype=dtype, 
/miniconda3/envs/text2nerf/lib/python3.10/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in scalar divide
  ret = ret.dtype.type(ret / rcount)