Coder Social home page Coder Social logo

stage = 'no' issue about storygen HOT 7 CLOSED

chwjshlwel avatar chwjshlwel commented on June 1, 2024
stage = 'no' issue

from storygen.

Comments (7)

Verg-Avesta avatar Verg-Avesta commented on June 1, 2024 1

Sorry, I just found a bug in pipeline.py and fixed it. Please use the new pipeline.py .
Now when using stage='no' with a random prev_p and ref_image, you can generate the correct result.

from storygen.

lq-blackcat avatar lq-blackcat commented on June 1, 2024

You need to set stage='multi-image-condition' or stage='auto-regressive' for img_conditions to have a non-empty value.

from storygen.

chwjshlwel avatar chwjshlwel commented on June 1, 2024

#10 (comment)
Here they said if want to generate a story, we should set stage='no'

I fact, I want to generate a story like the Fig. 1 in the paper, but I do not know how to do it.
When set stage='multi-image-condition' or stage='auto-regressive', the generated images are so different and not consistent.

from storygen.

haoningwu3639 avatar haoningwu3639 commented on June 1, 2024

To generate the first frame of the story, you need to set stage = 'no', because there is no existing conditional frame yet.
Later, you can use the generated first frame as a condition to auto-regressive synthesize the story, that is, set stage = 'multi-image-condition' or stage = 'auto-regressively'.
Additionally, as mentioned in previous issues (#10 (comment)). 'descriptive text' is more suitable to serve as a prompt than 'narrative story text'. Thus, we also mentioned in our paper that we should use ChatGPT or GPT-4 (or an open-source LLM such as LLaMA) to convert the storylines into corresponding descriptions as input to the model. We recommend you do the same.

from storygen.

lq-blackcat avatar lq-blackcat commented on June 1, 2024

@haoningwu3639 AttributeError: 'NoneType' object has no attribute 'items',this does not explain how to solve this problem.

from storygen.

Verg-Avesta avatar Verg-Avesta commented on June 1, 2024

Please refer to #10 (comment) .
When using stage='no', you should use a random prev_p and ref_image instead of empty ones. The model will not extract and attend to their features when stage = 'no'.

from storygen.

EIKO1241 avatar EIKO1241 commented on June 1, 2024

Hi!I set the stage="no" and set the prev_p=["The yellow-haired man"] and ref_image=["/gemini/code/StoryGen/data/boy.png"] instead of empty ones.But the error that "nonetype" object has no attribute "items" remains.How should I fix it?
image

from storygen.

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.