starrytong / SCNet

MIT License
59 stars 5 forks source link

Error inferencing #3

Closed lucellent closed 4 months ago

lucellent commented 4 months ago

Trying to inference with the provided checkpoint but getting

TypeError: apply_model() got an unexpected keyword argument 'sample_rate'

patriotyk commented 4 months ago

There is bug. it expects samplerate without underscore. https://github.com/starrytong/SCNet/blob/e75a03e8d44c24f612fa3fcebcdbd25dacc53920/scnet/apply.py#L64

starrytong commented 4 months ago

I updated the inference.py and you should be able to get it back up and running again

lucellent commented 4 months ago

I updated the inference.py and you should be able to get it back up and running again

Thanks both of you! There's also another small typo - it's said that in the inference code the output is "--output_path" but it should be "--output_dir"