Code Monkey home page Code Monkey logo

Comments (9)

nateraw avatar nateraw commented on May 19, 2024 1

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.

billybailey47 avatar billybailey47 commented on May 19, 2024

Just realized it's num_steps.

Closing.

from stable-diffusion-videos.

nateraw avatar nateraw commented on May 19, 2024

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.

nateraw avatar nateraw commented on May 19, 2024

Release made. It's now num_interpolation_steps not num_steps

from stable-diffusion-videos.

billybailey47 avatar billybailey47 commented on May 19, 2024

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.

billybailey47 avatar billybailey47 commented on May 19, 2024

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.
Screenshot 2022-10-06 at 23 54 05

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.

nateraw avatar nateraw commented on May 19, 2024

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.

billybailey47 avatar billybailey47 commented on May 19, 2024

@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.

billybailey47 avatar billybailey47 commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.