-
stylegan2-pytorch
Simplest working implementation of Stylegan2, state of the art generative adversarial network, in Pytorch. Enabling everyone to experience disentanglement
-
faker
A library for generating fake data such as names, addresses, and phone numbers. (by faker-ruby)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
require 'open-uri' 50.times do user = Upload.create!( email: Faker::Internet.safe_email, password: '123123', # needs to be 6 digits, # add any additional attributes you have on your model ) file = URI.open('https://thispersondoesnotexist.com/image') user.photo.attach(io: file, filename: 'user.png', content_type: 'image/png') end
I'm going to assume that we're using Devise for our User model. That means we'll most likely be logging in with an email. Let's use the gem Faker, but you have to be careful with this one. Some of their emails are real. The last thing you want to do is accidentally email all of those @gmail.com addresses you seeded into your database.
Related posts
-
Faker – generate fake data such as names, addresses, and phone numbers
-
Full-Text Search for Ruby on Rails with Litesearch
-
Leveling up your custom fake data with Faker.js
-
How to Setup RSpec on a Rails Project
-
Exploring LLMs for Data Synthesizing & Anonymization: looking for Insights on Current & Future Solutions