Comments (3)
请问图片是在哪一步生成的呢,我看代码里有断注释:
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.
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.
请问图片是在哪一步生成的呢,我看代码里有断注释:
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)
- Can you tell me how to set OPENAI_API_KEY? HOT 3
- 能支持api2d吗? HOT 1
- Could you provide some examples for the description? HOT 2
- Support custom API HOT 3
- Failed to query from FAISS HOT 5
- Failed to query from FAISS
- Failed with error "requests.exceptions.SSLError: HTTPSConnectionPool(host='api.semanticscholar.org', port=443)" HOT 1
- GPT4第三方转发商支持
- To observe the feasibility of reducing weight with urinary ketone by reducing vegetable intake to help obese people with low GI diet HOT 1
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 auto-draft.