The forum on this site is closed for new comments and posts. Continue the conversation in our Snap AR Discord server.

ML Data Sets

  • Kaggle is a good place to find datasets. They are of varying quality, but there's quite a few datasets to look through. Other than that people sometimes put datasets up on GitHub.

    You can find pre-trained models in the ONNX Model Zoo, although not all can be run in LS due to size constraints.

    Comment actions Permalink
  • Hey Mike,

     

    So I have the data sets, the only problem is finding a way to use the data sets to run in the Style Transfer.  So essentially I have over 1k images that I would want to use to build a style transfer lens much like how u can in runaway ML.  The only problem is I couldn't see a way to export a runaway ML model and when looking at Fritz AI I couldn't see a way to upload a data set instead of a singular image.  That's what brought me back to just the google collab.

    Comment actions Permalink
  • Gotcha. I have used both the Google Colab and Fritz AI style transfer templates. As you saw, Fritz AI only takes a single style image. The example Google Colab also takes a single style image. This is due to how the model itself is constructed. I don't know enough ML to go into any more detail, but I think the notebook starts with a pretrained model and freezes most of the model in place. It then uses the input style image and the downloaded image dataset to retrain a portion of the model to transfer the style over (although maybe it does train from scratch).

    I've never used RunwayML, but I'm guessing you might have been using a CycleGAN style transfer or something.

    It is possible to train and run a CycleGAN in LS (example of mine here), but it isn't the most straightforward. I used this code repo, edited the code to output an onnx file, and played with the parameters until I got a good enough model that could still fit inside a lens.

    I am planning on making a tutorial on how to modify the code and set the parameters, but I don't have an ETA on it, and it's too extensive to put into a forum comment.

    If you do decide to dive into things and try to figure it out, I do recommend training on just a handful of images to make sure you can load the model into LS. This will be a horrible model that doesn't give good results, but you'll be able to verify that all the model layers are readable by LS and that the model size isn't too big. That way you don't waste however long training your model just to find out you can't use it in LS.

    Comment actions Permalink
  • And the GAN models are a lot bigger than the template style transfer models. But they could potentially capture more of an artist's nuances from a dataset of images rather than a single example. I haven't tried a style transfer with them yet, but I'm interested to see how it turns out.

    Comment actions Permalink

We're here to help! We just need a little bit of information...

What system are you using?

Have you downloaded the latest version of Lens Studio?

Please download the latest version of Lens Studio. If you still run into this issue, please come back and report it!

Is this issue causing Lens Studio to crash?

What system do you run Lens Studio on?

Version

Graphics

Follow the next steps to help us solve your issue:

  • Copy and paste this text into your TerminalCommand Window
    open ~/Library/Preferences/Snap/Lens\ Studio/ %LOCALAPPDATA%\Snap\Lens Studio Copy Text
  • Press ReturnEnter to run the command. The Lens Studio folder will automatically open
  • Prepare to upload your files: zip the "Log" Folder by right-clicking and choosing "compress."
    Locate the Log.txt file right above it.

    Attach a screenshot of the issue:

Name:

Email:

What is this most relevant to?

Please enter a brief description of your issue:

Thanks for submitting this issue.

Unfortunately, it's likely due to the operating system or hardware you're using – since they don't meet the system requirements for Lens Studio.

Still, we hear you loud and clear, and are logging the issue in case there's ever a workaround we can provide!

Minimum Requirements

Operating System: Windows 10 (64 bit); MacOS 10.11+

Hardware: Minimum of Intel Core i3 2.5Ghz or AMD Phenom II 2.6Ghz with 4 GB RAM; Intel HD Graphics 4000 / Nvidia GeForce 710 / AMD Radeon HD 6450 or better; screen resolution of 1280x768 or higher

We'll try to resolve this issue as soon as possible. Thanks for letting us know about it!

Keep an eye out for a followup email from us. We may have a couple more questions for you, or we might already have a solution to offer.

Happy creating!