Replies: 1 comment 2 replies
-
What were the changes you made to the code? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i faced some error about 'pmf' in training stage after 0.6M step.
I customized the class 'Cheng2020Anchor' and there is no modification in entropy model.
Is there anyone struggled with this error below?
Traceback (most recent call last):
File "/home/oem/herok97_VML/NNVC/compressai-base/train_mfvc.py", line 547, in
main(sys.argv[1:])
File "/home/oem/herok97_VML/NNVC/compressai-base/train_mfvc.py", line 532, in main
train(
File "/home/oem/herok97_VML/NNVC/compressai-base/train_mfvc.py", line 446, in train
loss = test(global_step, test_dataloader, model, criterion, logger, optimizer.param_groups[0]['lr'],
File "/home/oem/herok97_VML/NNVC/compressai-base/train_mfvc.py", line 352, in test
model.update(force=True)
File "/home/oem/anaconda3/envs/herok97/lib/python3.9/site-packages/compressai/models/google.py", line 299, in update
updated |= super().update(force=force)
File "/home/oem/anaconda3/envs/herok97/lib/python3.9/site-packages/compressai/models/google.py", line 104, in update
rv = m.update(force=force)
File "/home/oem/anaconda3/envs/herok97/lib/python3.9/site-packages/compressai/entropy_models/entropy_models.py", line 426, in update
quantized_cdf = self._pmf_to_cdf(pmf, tail_mass, pmf_length, max_length)
File "/home/oem/anaconda3/envs/herok97/lib/python3.9/site-packages/compressai/entropy_models/entropy_models.py", line 210, in _pmf_to_cdf
_cdf = pmf_to_quantized_cdf(prob, self.entropy_coder_precision)
File "/home/oem/anaconda3/envs/herok97/lib/python3.9/site-packages/compressai/entropy_models/entropy_models.py", line 90, in pmf_to_quantized_cdf
cdf = _pmf_to_quantized_cdf(pmf.tolist(), precision)
ValueError: Invalid
pmf
: at least one element must have a non-zero probability.Is it because force=True was set when calling the update() function?
Beta Was this translation helpful? Give feedback.
All reactions