Git Product home page Git Product logo

Comments (5)

zhuangshaobin avatar zhuangshaobin commented on August 22, 2024

I appreciate your willingness to help, and I apologize for any confusion.

Since I'm not currently in a Docker environment, I can attempt to assist you further if you provide a more detailed description of the issue you're facing.

Please share any error messages or specific challenges you've encountered, and I'll do my best to help you troubleshoot the problem.

from vlogger.

Yangfan-96 avatar Yangfan-96 commented on August 22, 2024

I appreciate your willingness to help, and I apologize for any confusion.

Since I'm not currently in a Docker environment, I can attempt to assist you further if you provide a more detailed description of the issue you're facing.

Please share any error messages or specific challenges you've encountered, and I'll do my best to help you troubleshoot the problem.

After replacing bark_ssg with pip install bark, I was able to run the program.Then I found that the name of the encoder in Hugging Face is different from that in the yaml file:image_encoder_path: "pretrained/CLIP-ViT-H-14-laion2B-s32B-b79K". After modifying it, the following error was reported:
Seed set to 3407
Cannot initialize model with low cpu memory usage because accelerate was not found in the environment. Defaulting to low_cpu_mem_usage=False. It is strongly recommended to install accelerate for faster and less memory-intense model loading. You can do so with:

pip install accelerate

.
Warnning: using half percision for inferencing!
model ready!

protagonists ready!
Traceback (most recent call last):
File "/data/yangfan/gen_video/Vlogger/sample_scripts/vlog_read_script_sample.py", line 303, in
main(omega_conf)
File "/data/yangfan/gen_video/Vlogger/sample_scripts/vlog_read_script_sample.py", line 157, in main
video_list = readscript(args.script_file_path)
File "/data/yangfan/gen_video/Vlogger/vlogger/planning_utils/gpt4_utils.py", line 530, in readscript
video_fragments = ast.literal_eval(script)
File "/home/yangfan/anaconda3/envs/vlogger/lib/python3.10/ast.py", line 64, in literal_eval
node_or_string = parse(node_or_string.lstrip(" \t"), mode='eval')
File "/home/yangfan/anaconda3/envs/vlogger/lib/python3.10/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
ValueError: source code string cannot contain null bytes

from vlogger.

zhuangshaobin avatar zhuangshaobin commented on August 22, 2024

Firstly, it appears that you have not installed the accelerate package. Installing it can save GPU memory and accelerate inference.

Secondly, based on the provided error information, potential issues can be classified into two scenarios:

  1. If you did not use the default configuration file, configs/vlog_read_script_sample.yaml, for sample_scripts/vlog_read_script_sample.py and instead made modifications to the script file, you should compare it with the scripts in the repository I provided. Check for any differences in formatting, as content generated by GPT may occasionally deviate from the interface I designed.

  2. If you used the default configuration file, configs/vlog_read_script_sample.yaml, it's possible that you accidentally modified some scripts within it. In this case, you can directly download and replace the original files with the script files I provided.

from vlogger.

Yangfan-96 avatar Yangfan-96 commented on August 22, 2024

Firstly, it appears that you have not installed the accelerate package. Installing it can save GPU memory and accelerate inference.

Secondly, based on the provided error information, potential issues can be classified into two scenarios:

  1. If you did not use the default configuration file, configs/vlog_read_script_sample.yaml, for sample_scripts/vlog_read_script_sample.py and instead made modifications to the script file, you should compare it with the scripts in the repository I provided. Check for any differences in formatting, as content generated by GPT may occasionally deviate from the interface I designed.
  2. If you used the default configuration file, configs/vlog_read_script_sample.yaml, it's possible that you accidentally modified some scripts within it. In this case, you can directly download and replace the original files with the script files I provided.

I did not modify the video_prompts.txt。Could you tell me the version number of your ast?

from vlogger.

zhuangshaobin avatar zhuangshaobin commented on August 22, 2024

Firstly, it appears that you have not installed the accelerate package. Installing it can save GPU memory and accelerate inference.
Secondly, based on the provided error information, potential issues can be classified into two scenarios:

  1. If you did not use the default configuration file, configs/vlog_read_script_sample.yaml, for sample_scripts/vlog_read_script_sample.py and instead made modifications to the script file, you should compare it with the scripts in the repository I provided. Check for any differences in formatting, as content generated by GPT may occasionally deviate from the interface I designed.
  2. If you used the default configuration file, configs/vlog_read_script_sample.yaml, it's possible that you accidentally modified some scripts within it. In this case, you can directly download and replace the original files with the script files I provided.

I did not modify the video_prompts.txt。Could you tell me the version number of your ast?

My Python interpreter version is 3.10.11, and the ast version corresponds to Python.

from vlogger.

Related Issues (15)

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.