msieg / deep-music-visualizer

The Deep Visualizer uses BigGAN (Brock et al., 2018) to visualize music.
384 stars 104 forks source link

Export Previously Used Classes #22

Open Vanceagher opened 2 years ago

Vanceagher commented 2 years ago

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

hubortje commented 2 years ago

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

illtellyoulater commented 1 year ago

@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 commented 1 year ago

@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

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

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

illtellyoulater commented 1 year ago

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