Skip to content
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

Export Previously Used Classes #22

Open
Vanceagher opened this issue Feb 11, 2022 · 4 comments
Open

Export Previously Used Classes #22

Vanceagher opened this issue Feb 11, 2022 · 4 comments

Comments

@Vanceagher
Copy link

I know of the previous classes parameter but how can I save the classes to use whenever

@hubortje
Copy link

hubortje commented May 9, 2022

Hey @Vanceagher,
are you willing to describe your desired outcome more detailed? I'm not sure if I understand the question/problem clearly.

@illtellyoulater
Copy link

@hubortje I think OP is looking for a way to save the classes used in a video every time a video is generated, which would be a practical way to keep track of interesting classes and use them again in other videos.

@illtellyoulater
Copy link

@Vanceagher in order to do that you could add code to print or save to a file the classes after they are randomly picked, after line 155

classes=cls1000[:12]

So at line 156 you could just add print(classes) and get the job done.

@illtellyoulater
Copy link

actually a better place to put the print or save code would be at line 157, after the classes are sorted:

https://github.com/msieg/deep-music-visualizer/blob/fa4d51c518ab77b2d9862c88c42ecd456a8f1962/visualize.py#LL152-L157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants