-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure reconstruction test is runnable end to end #16
Comments
Ok I think a better way is that the file itself should be a runnable file with passing arguments; something like `./reconstruction-test --dataset-dir --sample-rate arguments passed by should be
This will shorten the code and also reduces dependancies.
The output of the file can be in following shape
By that you mean 16? Sorry here I just got confused.
Did I cover that in previous part?
Ok I think a top level |
Good idea.. but be sure to have a top-level run.sh that runs the complete test.
Sure.
No I meant 6- look at the code. The bits-per-sample used by lilcom to compress.
Yes, a top-level sh. Just put comments in where needed. |
We can make the python as a runnable shell file just with
Yes found it. we can add another passing parameter to let the user change this value. Is it Ok or sth else is needed.
The argument parser gives a help function in which the user can easily find out how to work with the test. |
The idea of run.sh is that it should just run automatically when you run |
Ok I got it so there is now difference here.
…On Thu, 24 Oct 2019, 21:16 Daniel Povey, ***@***.***> wrote:
The idea of run.sh is that it should just run automatically when you run
./run.sh
so the user does not have to spend time figuring out documentation.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=AB7HSSDIMLJZFXHT4GM4SQLQQHNPLA5CNFSM4JDKVTA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECF3SUY#issuecomment-546027859>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7HSSFJAGA34H23IFTKKEDQQHNPLANCNFSM4JDKVTAQ>
.
|
In addition to the assumption that MP3 will compress with the exact bitrate passed also there would be an issue with sample rate. Let me test it on long audio too and I'll return the code with true bitrates for mp3. Do you think we should substitute pydub and librosa with sox. If it is necessary I try to figure it out. |
Sox is OK, it's just for testing.
…On Mon, Nov 11, 2019 at 2:31 AM Soroush Zargar ***@***.***> wrote:
In addition to the assumption that MP3 will compress with the exact
bitrate passed also there would be an issue with sample rate. Let me test
it on long audio too and I'll return the code with true bitrates for mp3.
Do you think we should substitute pydub and librosa with sox. If it is
necessary I try to figure it out.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=AAZFLO3QSJNLAXGPCOO6SMDQTEX63A5CNFSM4JDKVTA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDWL36Q#issuecomment-552386042>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZFLOYTTG4ZAVXTP2R3UQDQTEX63ANCNFSM4JDKVTAQ>
.
|
Oh, you mean the other way round.
I think the way it is now is fine.
mp3 seems to ignore the bitrate passed for some sample rates. You need to
find the size on disk using os.path.[something].
…On Mon, Nov 11, 2019 at 11:58 AM Daniel Povey ***@***.***> wrote:
Sox is OK, it's just for testing.
On Mon, Nov 11, 2019 at 2:31 AM Soroush Zargar ***@***.***>
wrote:
> In addition to the assumption that MP3 will compress with the exact
> bitrate passed also there would be an issue with sample rate. Let me test
> it on long audio too and I'll return the code with true bitrates for mp3.
>
> Do you think we should substitute pydub and librosa with sox. If it is
> necessary I try to figure it out.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#16?email_source=notifications&email_token=AAZFLO3QSJNLAXGPCOO6SMDQTEX63A5CNFSM4JDKVTA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDWL36Q#issuecomment-552386042>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAZFLOYTTG4ZAVXTP2R3UQDQTEX63ANCNFSM4JDKVTAQ>
> .
>
|
@soroushzargar perhaps you could do this.. it would be better if the reconstruction-test were easier to run. For example, have a script that downloads and suitably formats the appropriate data and then runs the test. Right now there is some hacky stuff going on with a
temp
dir that probably isn't in the source tarball.I was only printing out the bits in the file as a debugging step. But I think we should be displaying the file sizes or bits per unit time in some form alongside the various compression methods; this will make comparisons more meaningful.
I just set the bits per sample to 6 in reconstruction-test.py but we may want to test various settings. What I would really like is some info about PSNR's and file sizes formatted in a way that's easily readable. IMO a simple Python program that prints out a summary would be preferable to this CSV stuff, in that it would be clearer. But as long as you do print out something readable at some point (maybe as a post processing step that might be in a separate script) it's OK with me. Make sure it's all documented with a top-level run.sh or something.
The text was updated successfully, but these errors were encountered: