float icon indicating copy to clipboard operation
float copied to clipboard

No Output/Result on Run

Open tokenwizard opened this issue 1 year ago • 10 comments

I've installed per documentation. When trying to run an inference, here is the console output:

python generate.py --ref_path='Face.jpg' --aud_path='Audio.wav' --seed 15 --a_cfg_scale 2 --e_cfg_scale 1 --ckpt_path ./checkpoints/float.pth --no_crop           
/run/media/tokenwizard/AI-Stuff/float/venv/lib/python3.8/site-packages/albumentations/__init__.py:13: UserWarning: A new version of Albumentations is available: 2.0.5 (you have 1.4.15). Upgrade using: pip install -U albumentations. To disable automatic update checks, set the environment variable NO_ALBUMENTATIONS_UPDATE to 1.
  check_for_updates()
Some weights of the model checkpoint at ./checkpoints/wav2vec2-base-960h were not used when initializing Wav2VecModel: ['lm_head.weight', 'lm_head.bias']
- This IS expected if you are initializing Wav2VecModel from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
- This IS NOT expected if you are initializing Wav2VecModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
Some weights of Wav2VecModel were not initialized from the model checkpoint at ./checkpoints/wav2vec2-base-960h and are newly initialized: ['wav2vec2.masked_spec_embed']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
/run/media/tokenwizard/AI-Stuff/float/venv/lib/python3.8/site-packages/torch/_utils.py:776: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()

There is no mention of any output file and I do not see any sort of output/result in the working folder or the "results" folder.

tokenwizard avatar Apr 25 '25 19:04 tokenwizard

I have the same problem. May I ask if you have solved it now? If so, could you please tell me how you solved it

dttttttyfyfyf avatar May 06 '25 09:05 dttttttyfyfyf

Don´t you get the video output in the results directory? I got results/2025-05-17T21-03-19-Mila_Kunis_512x512_1-output_audio-nfe10-seed15-acfg2.0-ecfg1.0-None.mp4

https://github.com/user-attachments/assets/adfdaf95-7543-4a3d-b136-861979edf8cd

set-soft avatar May 18 '25 00:05 set-soft

Same problem. Any solution on this?

pavanpankajtruviz avatar Jun 02 '25 10:06 pavanpankajtruviz

Same problem. Any solution on this?

Did you check the results folder?

set-soft avatar Jun 02 '25 11:06 set-soft

yes. I checked the results folder. I figured out the issue. This is because of not installing ffmpeg. After installing it, everything works well. Thank you

pavanpankajtruviz avatar Jun 02 '25 11:06 pavanpankajtruviz

Yes, torchvision uses PyAV and this is a wrapper for ffmpeg lamentably Python packages can't solve it.

set-soft avatar Jun 02 '25 11:06 set-soft

I am having the same issue, even after installing ffmpeg. I am using test images and audio provided in the repo. What could be the issue?

fgrelard avatar Jun 23 '25 18:06 fgrelard

I have the same problem and solved it just by installing ffmpeg: sudo apt install ffmpeg -y

iehsanamiri avatar Oct 29 '25 13:10 iehsanamiri

Facing the similar issue. Installed ffmpeg, reactivate conda env, but still the same issue. No results appearing in results folder.

Zainbil avatar Dec 09 '25 06:12 Zainbil

Try changing the ref_image. If the image is too close up, it won't be able to find any face, thus failing.

AleefBilal avatar Dec 09 '25 07:12 AleefBilal