Giter Club home page Giter Club logo

Comments (3)

overal-well-off-society avatar overal-well-off-society commented on August 15, 2024

请问图片是在哪一步生成的呢,我看代码里有断注释:

def figures_generation(paper, save_to_path, model):

# todo: this function is not complete.

prompts = generate_experiments_prompts(paper)

gpt_response, usage = get_responses(prompts, model)

list_of_methods = list(extract_json(gpt_response))

generate_random_figures(list_of_methods, os.path.join(save_to_path, "comparison.png"))

return usage

from auto-draft.

CCCBora avatar CCCBora commented on August 15, 2024

abstract part has been generated.

USAGE>> For generating abstract, 6081 tokens have been used (5453 for prompts; 628 for completion). 33277 tokens have been used in total.
================POST-PROCESSING================
Traceback (most recent call last):
File "/home/dk/Downloads/auto-draft-main/auto_backgrounds.py", line 302, in
output = generate_draft(target_title, knowledge_database="ml_textbook_test")
File "/home/dk/Downloads/auto-draft-main/auto_backgrounds.py", line 280, in generate_draft
create_copies(destination_folder)
File "/home/dk/Downloads/auto-draft-main/utils/tex_processing.py", line 57, in create_copies
shutil.copy2(original_fig, target_fig)
File "/home/dk/anaconda3/envs/autopaper/lib/python3.9/shutil.py", line 444, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/home/dk/anaconda3/envs/autopaper/lib/python3.9/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'outputs/outputs_20230704_220432/fig.png'

Process finished with exit code 1

噢这个问题是因为我有一个模板里忘记放入fig.png导致的。我现在没有做生成图片的功能,只放了一个空的图片。
我会在下一个更新中修复这个问题。

from auto-draft.

CCCBora avatar CCCBora commented on August 15, 2024

请问图片是在哪一步生成的呢,我看代码里有断注释:

def figures_generation(paper, save_to_path, model):

# todo: this function is not complete.

prompts = generate_experiments_prompts(paper)

gpt_response, usage = get_responses(prompts, model)

list_of_methods = list(extract_json(gpt_response))

generate_random_figures(list_of_methods, os.path.join(save_to_path, "comparison.png"))

return usage

这个功能还没有实现。 目前是复制一个现成的空图片fig.png。这个函数只是随机画几条线

from auto-draft.

Related Issues (10)

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.