Comments (9)
ah yea you need to pass them to the interface for now. the programatic interface is same way. I usually do this to get some randomly generated seeds
import random
prompts = ['a cat', 'a dog']
seeds = [random.choice(list(range(0, 9999999))) for _ in range(len(prompts))]
from stable-diffusion-videos.
Just realized it's num_steps.
Closing.
from stable-diffusion-videos.
whoops I need to make a PyPI release then the colab will work out of the box. thanks for letting me know
from stable-diffusion-videos.
Release made. It's now num_interpolation_steps
not num_steps
from stable-diffusion-videos.
No problem @nateraw! Always happy to help. Quick question as I can't see a way to message you.
I'm struggling to leave seeds empty. It throws errors whatever I do. Albeit my knowledge of Python is limited.
It does say it's an optional argument & you can leave it blank if using the UI interface.
Any pointers would be appreciated!
from stable-diffusion-videos.
Thank you @nateraw ,
One last query.
Are there plans to improve NSFW? Not saying I want to make NSFW content, I'm primarily a visionary/psychedelic artist.
My prompts do NOT include any suggestive words & I'm including fully clothed, no nudity but a large number of pictures get flagged wrecking the animation.
I've tried re-rolling, different seeds but not much improvement.
It would be cool if these could be automatically deleted or re-run!
Thanks again for your time.
from stable-diffusion-videos.
My prompts do NOT include any suggestive words & I'm including fully clothed, no nudity but a large number of pictures get flagged wrecking the animation.
Yea I've been having same issues. So I added something to help, but am not advertising it outside of issues/prs.
from stable_diffusion_videos import StableDiffusionPipeline, NoCheck, interface
pipeline = StableDiffusionPipeline(...) # init as you normally would
pipeline.safety_checker = NoCheck().cuda()
# If using interface
interface.launch()
from stable-diffusion-videos.
@nateraw thank you so much for showing me this & I hope your having a good Friday.
I've just re-gained access to collab and get the below error:
Cannot assign member "safety_checker" for type "ModuleType"
Member "safety_checker" is unknown(reportGeneralTypeIssues)
safety_checker: Unknown | Any
Does this suggestion work in collab or only locally?
Any tips on how to get this running via collab would be great. Apologies for all the questions. This is a great piece of kit!
Here's what I've got:
from stable_diffusion_videos import StableDiffusionPipeline, NoCheck, interface, walk
pipeline = StableDiffusionPipeline()
pipeline.safety_checker = NoCheck().cuda()
walk(
prompts=['prompt1', 'prompt2','Prompt3'],
seeds=[423946, 13452537, 6926731],
name='trippy',
fps=60,
guidance_scale=16.5,
num_interpolation_steps=220,
num_inference_steps=50,
scheduler='ddim',
disable_tqdm=False,
make_video=True,
use_lerp_for_text=True,
do_loop=True,
upsample=True,
)
The below error is thrown:
TypeError Traceback (most recent call last)
[<ipython-input-7-ab50988cb2d1>](https://localhost:8080/#) in <module>
1 from stable_diffusion_videos import StableDiffusionPipeline, NoCheck, interface, walk
2
----> 3 pipeline = StableDiffusionPipeline()
4 pipeline.safety_checker = NoCheck().cuda()
5
TypeError: __init__() missing 7 required positional arguments: 'vae', 'text_encoder', 'tokenizer', 'unet', 'scheduler', 'safety_checker', and 'feature_extractor'
from stable-diffusion-videos.
Ah, got it working. Sorry I work in QA and really should try more things before reaching out! This worked. Well, it's at least running!
from stable_diffusion_videos import NoCheck, walk
safety_checker = NoCheck().cuda()
walk(
prompts=[
'hypercomplex image of floating head made out of reflective blocks and some blocks are broken and falling by alex grey, lisa frank, ayami, kojima, amano, karol bak, greg hildebrandt, mark brooks, beksinski, takato yamamoto',
'detailed realistic beautiful water storm goddess portrait by jean delville, gustave dore, iris van herpen and marco mazzoni, art forms of nature by ernst haeckel, art nouveau, symbolist, visionary, gothic, neo - gothic, pre - raphaelite, fractal lace, intricate alien botanical biodiversity, surreality, hyperdetailed ultrasharp octane render',
'hyperrealistic portrait of melting hippies - epic cinematic mushrooms with psychedelic field of flowers, highly detailed smooth digital art masterpiece, pablo amaringo dramatic low light, ground angle uhd 8 k, sharp focus'],
seeds=[423946, 13452537, 6926731],
name='trippy',
fps=60,
guidance_scale=16.5,
num_interpolation_steps=220,
num_inference_steps=50,
scheduler='ddim',
disable_tqdm=False,
make_video=True,
use_lerp_for_text=True,
do_loop=True,
upsample=True,
)
Have a great day!
from stable-diffusion-videos.
Related Issues (20)
- How to determine the video length? HOT 2
- Estimate resource requirements
- Explain the seeds & continue after failure
- What diffusion models does it support?
- NFSW filter? HOT 1
- ERROR: Failed cleaning build dir for basicsr HOT 1
- skull
- Error with making a music video (av.error.ValueError: [Errno 22] Invalid argument) HOT 5
- How to disable safe_checker in run_app and run_music_video_app HOT 1
- Why are the frames all required to be from different seeds? HOT 3
- Redirect download directory HOT 2
- Cat
- Fade to black and vice versa
- Dont know what to do next HOT 1
- Set up JAX ERROR HOT 3
- Cython.Compiler.Errors.CompileError: av/logging.pyx HOT 2
- Upgrade dependency: diffusers to 0.21
- requests.exceptions.ConnectionError: HTTPSConnectionPool(host='cdn-lfs.huggingface.co', port=443): Read timed out.
- How to make it support Chinese prompt? HOT 2
- Installation Error - SyntaxError: invalid syntax HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion-videos.