-
Notifications
You must be signed in to change notification settings - Fork 903
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
Examples for CharRNN seem to be broken #1243
Comments
Hi @mross1080, thanks for reporting that. I/we will look into the issue. |
Hey @mross1080 I did some testing and I think it is an issue with the p5 web editor. I tried to upload a new model from the examples (https://github.com/ml5js/ml5-data-and-models/tree/main/models/charRNN) to make sure its not the model. The new model could not be uploaded, because some file types are not supported. See screenshots attached: It works if you are using a p5.js version locally etc. Hope this helps?! @bomanimc should we take down this example or open an issue with the web-editor? |
Hey @tlsaeger! I wonder if there's a way we could remove just the links to the web editor versions of these examples and add a note of documentation on the charRNN page? I'm also tagging @catarak regarding the web editor! Cassie, do you think it makes sense for the editor to support these tensorflow.js model file types or is that opening too big of a can of worms? |
@shiffman i think the removing and making a note would be best. If Cassie and the team support this in the future we could take them back online. |
Hey @tlsaeger that's totally cool! I would just appreciate some clarity around what is the correct version of things in the docs since I usually point my students towards there. I've found some of the other examples on the site are broken. For example this style transfer video one. https://editor.p5js.org/ml5/sketches/StyleTransfer_Video I think it's fine for the library to not work in the p5 editor, but I think it would be helpful to remove links to broken sketches and explicitly tell people they need to run locally. Thanks! |
@mross1080 You are 100% right we will remove those links and replace them with an explanation of why they need to be run locally. Gonna take a look at the other example as well. |
@mross1080 if you like to change the documentation yourself and contribute to the repo, I would be more than happy to assist you. I could also do it myself, what do you think? |
Thanks for tagging me on this! What are the file types that need to be supported to get this example working? It's honestly not hard to whitelist file types/MIME types, I just prefer to do it on a case by case basis. |
@catarak they weirdly don't have a real file-extension. I've attached a screenshot, maybe you know what kind of file that is: |
Hmm I don't know what the mime type is either! Maybe these files could be whitelisted based on their names? The trained model files all have the same names, right? |
Correct! these names are generated by the training process so this would work well! (Could it be exploited in any way?) We could also investigate changing the way the training works to add file extensions. My guess is that these are all "binary data" files. Happy to investigate if that would be helpful. |
Hello!
I'm trying to use the examples for CharRNN as linked to in the ml5 documentation. All the examples seem to throw the same error when starting up.
https://editor.p5js.org/ml5/sketches/CharRNN_Text_Stateful
https://editor.p5js.org/ml5/sketches/CharRNN_Interactive
I tried running the editor scripts in both Google Chrome and Firefox. Not sure what steps I can take to fix as it's the examples from the documentation.
Thanks!
The text was updated successfully, but these errors were encountered: