Comments (7)
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.
You need to set stage='multi-image-condition' or stage='auto-regressive' for img_conditions to have a non-empty value.
from storygen.
#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.
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.
@haoningwu3639 AttributeError: 'NoneType' object has no attribute 'items',this does not explain how to solve this problem.
from storygen.
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.
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?
from storygen.
Related Issues (20)
- StorySalon Dataset HOT 1
- Dataset HOT 2
- Licensing HOT 2
- Help HOT 1
- inference.py HOT 11
- inference CUDA out of memory HOT 1
- Mismatch in BasicTransformerBlock HOT 1
- youtube HOT 1
- prev_prompt_ids.append(tokenizer(prev_prompt, truncation=True, padding="max_length", max_length=tokenizer.model_max_length, return_tensors="pt").input_ids.squeeze(0)) HOT 1
- Access to Model Checkpoint HOT 1
- Unable to download youtube data, can you provide the corresponding key frames? HOT 1
- loss=NAN HOT 3
- OSError: Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory checkpoint_StorySalon/ HOT 1
- How to download PDF data and split dataset? HOT 2
- Clean up of the env yaml file HOT 1
- Cannot load <class 'model.unet_2d_condition.UNet2DConditionModel'> from /home/jay/StoryGen/ckpt/stable-diffusion-v1-5/ because the following keys are missing HOT 2
- FileNotFoundError: No such file or directory: './StorySalon/image_inpainted_finally_checked' HOT 1
- Is there a file image_inpainted_finally_checked in the dataset? HOT 2
- Inference results didn't perform as expected
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 storygen.