-
Notifications
You must be signed in to change notification settings - Fork 20
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
more details about train? #9
Comments
Hi, I used a few different datasets, but imagenet is the main one. To train you just need a reasonably varied set of images, even only 100 photos. Unfortunately sometime recently rust-llvm got worse at slp auto-vectorization, so the currently released matrix multiplication is suddenly much slower. I've got a fix that relies on loop auto-vectorization instead but haven't released it. I'll get back to you this weekend once I've fixed the performance issues. |
Thanks for your response. |
I've updated the dependancies, so you might want to rebase. Changing FACTOR should be all that is required, although it means that the built-in res/*.rsr files have to be removed or replaced as they are only for FACTOR=3. This is what my training command looks like: For performance the right env flags are required: If you are on nightly you can also use prefetch and ftz_daz: |
Regarding nothing happening, that's worrying. Could you tell me what gets printed to stdout when running an upscale task and when running train? Upscaling would normally print: When first running If you have time could you clone matrixmultiply_mt and run: This should help pinpoint whats happening, Thanks. |
I updated deps with "cargo update" and tried again. Nothing is still happened, CPU usage is closed to 0.0%. So I cloned matrixmultiply_mt and run "cargo test" and "cargo bench".
Also, I found the cpu usage is really low( 0.0% ) from mat_mul_f32::m0064 in my further benches. |
I also run "cargo test" and ""cargo bench" on my ubuntu machine, both of them are working fine. Blow is bechmark:
I will go back to rusty-sr on linux:) |
Thank you very much for doing this testing, its good to know where the problem is! I've updated If it still doesn't work on OSX then turning off multithreading might be an option in the short term: I'll ask around and see if anyone knows if OSX has open issues. The only one I know of has been fixed jemalloc/jemalloc#895. |
Where is the update about matrixmultiply_mt? The latest update in matrixmultiply_mt is 17hours old. For rusty_sr itself, I still have question about how to use:
I have started a new 2x factor training with above arguments a couple of hours again and it's running :) Please let me know if I am wrong so that I can start a new training with right arguments. |
Crates.io "Last Updated" is wrong, not sure why. Version 0.1.4 is the new one. That training setup looks correct :). The PARAMETER_FILE argument is where the weights learned by the neural network get saved (every 100 steps, when the validation PSNR gets printed). You can then use them when upscaling later using If you want your new parameters/weights to be used by default you'll have to put test.rsr in the /res folder and then change a few parts of the code. If you train on a few different datasets you can include them all in /res and reprogram how the
|
Nice to see your rust impl.
I'd like to use it for 2X factor upscale. Can you provide more details about how to train the model? Or do you have any sample dataset or model for quick setup?
The text was updated successfully, but these errors were encountered: