I'm Jacob Zhang.
jacbz / lofi Goto Github PK
View Code? Open in Web Editor NEWML-supported lo-fi music generator
Home Page: https://lofi.jacobzhang.de?default
License: Apache License 2.0
ML-supported lo-fi music generator
Home Page: https://lofi.jacobzhang.de?default
License: Apache License 2.0
I'm Jacob Zhang.
The error is in the web version https://lofi.jacobzhang.de.
The same error in my virtual machine with a fork made to try to improve and add a new collection of lead sheets and be able to improve the project.
一个非常好的项目,希望可以得到模型文件进行测试。
Since some days, I have an Error when I click on generate, Even when I use your website, Is it still an active project? Thanks :)
Hi, can we run the model with a pre-trained model?
or resume training.
pls, can you show me how to use this, I didn't understand exactly, until now I only worked on computer vision, I need to learn about Transformers
Where to get them for the server?
Hi, I finally got everything ready and it was my first time training a model. However I noticed some problems with lofi2lofi_train.py
:
Unable to continue training with pre-trained / previous results
Everytime I run the script, it trains from epoch 0 and doesn't load any files. How make the script to load previous results and continue training?
High CPU / disk usage
I notice that the RAM usage is always rising and extreme high. It reached MemoryError at 211 epochs.
Is there anyway to improve the training script?
I'm not sure when it will start overfitting but for now, I want to have as much epochs as possible.
Really love this project and I want to make it better.
Thank you!
Hello, how do we make it autoplay when the site is opened?
Thanks for the previous answer. I have tried and it effectively lengthens the duration of the theme, but repeating the same thing over and over again. Is there a way to generate more sequences of different melodies to have a more extensive musical track but not for that reason repetitive?
I wanna try it but i know almost nothing of python xD
Thanks in advance.
I know this hasn't been updated in a while, but could there be a feature where it reaches the end of the playlist, and generates another song? Continuous playback?
ModuleNotFoundError: No module named 'model' in docker and running outside of docker cant seem to get it to see the models even when they are in the same directory as the server or manually pointing to the location by changing it in app.py not sure what I am doing wrong. works fine with default settings but I would like to run this locally
Hey There!
I'm running into this error "Can't call numpy() on Tensor that requires grad. Use tensor.detach().numpy() instead." when trying with CPU tensor. Below is the error output I get. I have also tried with CUDA and get other various errors. So I'll stick with CPU for now.
python3.8 lofi2lofi_train.py Using cpu device Starting training: lofi2lofi == Epoch 0 == Scheduled sampling rate: C 0, M 0 Batch 0: Loss 5.507 (C: 2.230 + KL: 0.021 + M: 2.710 + T: 0.059 + K: 0.081 + Mo: 0.193 + V: 0.090 + E: 0.123) Validation Batch 0: Loss 5.470 (C: 2.192 + KL: 0.020 + M: 2.705 + T: 0.059 + K: 0.082 + Mo: 0.188 + V: 0.052 + E: 0.172) Epoch chord loss: 2.230, melody loss: 2.710, KL: 0.021, chord accuracy: 1.765, melody accuracy: 0.624 VALIDATION: epoch chord loss: 2.192, melody loss: 2.705, KL: 0.020, chord accuracy: 14.286, melody accuracy: 0.311 Traceback (most recent call last): File "lofi2lofi_train.py", line 14, in <module> train(dataset, model, "lofi2lofi") File "/mnt/Storage//Lofi/model/model/train.py", line 190, in train axs[0, 0].plot(epochs, train_losses_chords, label='Train', color='royalblue') File "/home/ubuntu/.local/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 1688, in plot lines = [*self._get_lines(*args, data=data, **kwargs)] File "/home/ubuntu/.local/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 311, in __call__ yield from self._plot_args( File "/home/ubuntu/.local/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 494, in _plot_args y = _check_1d(xy[1]) File "/home/ubuntu/.local/lib/python3.8/site-packages/matplotlib/cbook/__init__.py", line 1348, in _check_1d return np.atleast_1d(x) File "<__array_function__ internals>", line 200, in atleast_1d File "/home/ubuntu/.local/lib/python3.8/site-packages/numpy/core/shape_base.py", line 65, in atleast_1d ary = asanyarray(ary) File "/home/ubuntu/.local/lib/python3.8/site-packages/torch/_tensor.py", line 643, in __array__ return self.numpy() RuntimeError: Can't call numpy() on Tensor that requires grad. Use tensor.detach().numpy() instead.
Command I run is python3.8 lofi2lofi_train.py
Do you recommend any way to, instead of playing the song in tone.js, generate a .wav or .mp3 file?
Hello, thanks for creating this project. I was wondering if there's a requirements.txt
for the model part? I didn't really see one in the project.
Hi, thanks for this amazing repository, I am converting this project to python code...
And I want to know that the folder "https://github.com/jacbz/Lofi/tree/main/client/assets/samples/instruments" has full instruments and the music is made only on these instruments?
Great stuff. Will be good for vlog background music. How to export the audio files?
When using the live version of the app, all the songs generated are copyrighted? What about when forking the project and tuning the model?
Impressive project! My congratulations! The generated music is very good. I have a question, is it possible that the average duration is 3 minutes instead of 1:30? I have downloaded the code but I can't figure out where to modify to achieve that. I clarify I do not program in python. Thank you!
I'm unsure why I'm getting this error when trying to run the Lofi docker image.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.8/site-packages/flask/__main__.py", line 3, in <module>
main()
File "/usr/local/lib/python3.8/site-packages/flask/cli.py", line 1050, in main
cli.main()
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/flask/cli.py", line 911, in run_command
raise e from None
File "/usr/local/lib/python3.8/site-packages/flask/cli.py", line 897, in run_command
app = info.load_app()
File "/usr/local/lib/python3.8/site-packages/flask/cli.py", line 312, in load_app
app = locate_app(import_name, None, raise_if_not_found=False)
File "/usr/local/lib/python3.8/site-packages/flask/cli.py", line 218, in locate_app
__import__(module_name)
File "/app/app.py", line 15, in <module>
limiter = Limiter(
TypeError: __init__() got multiple values for argument 'key_func'
The commands I used in Docker are as follows. Using your Dockerfile
docker build -t lofi .
docker run -p 8080:5000 -v /Lofi/model:/model -v /Lofi/server:/server lofi
First, congratulations for the amazing project!!
I would like to know, How can I continue training from the available checkpoint?
Thanks for the project!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.