deep-rl-class icon indicating copy to clipboard operation
deep-rl-class copied to clipboard

[HANDS-ON BUG]unit 8 package_to_hub ALSA lib error

Open alex-x-sun opened this issue 1 year ago • 2 comments

Describe the bug

The model trains normally, but the package_to_hub process stuck with the following message:

ℹ This function will save, evaluate, generate a video of your agent, create a model card and push everything to the hub. It might take up to 1min. This is a work in progress: if you encounter a bug, please open an issue. ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default

The code cell keeps running but no output. I got an empty repo on my Huggingface model page.

notebook link (https://colab.research.google.com/drive/1MGCzYP8xor306Pr3u8-LnUav7N--tBoy?usp=sharing)

Material

  • Did you use Google Colab?
  • Yes. I also tried different runtime setting, CPU/GPU, high/normal RAM

alex-x-sun avatar Sep 26 '23 13:09 alex-x-sun

If I quote the "generate video" lines in package_to_hub() function, it will work.

# Step 4: Generate a video
#video_path =  tmpdirname / "replay.mp4"
#record_video(eval_env, model, video_path, video_fps) 

Although it looks messy and has no video on my Huggingface page. But at least I have a model uploaded. I'm curious what goes wrong with the record_video function? Thanks!

alex-x-sun avatar Sep 26 '23 14:09 alex-x-sun

Hey there 👋 that's weird I just tried and it worked. Did you run all the cells?

simoninithomas avatar Nov 07 '23 10:11 simoninithomas