Are you sure you want to delete this access key?
Legend |
---|
DVC Managed File |
Git Managed File |
Metric |
Stage File |
External File |
Legend |
---|
DVC Managed File |
Git Managed File |
Metric |
Stage File |
External File |
This document provides a comprehensive guide to reproducing the TextPSG project results for the hackathonf23-Creativity_Underflow. Please follow the instructions in each section carefully to ensure a successful replication of the project environment, execution, and results.
Access the runnable codebase and project files:
The project settings are defined in:
settings.py
Clone the repository using Git:
git clone https://dagshub.com/ML-Purdue/hackathonf23-Creativity_Underflow.git
Locate all necessary data and artifacts in the DVC file:
data.dvc
Create and activate a new conda environment with the following commands:
conda create -n textpsg python=3.10
conda activate textpsg
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
conda install cython
pip install -r requirements.txt
Download the following Java dependencies:
Note: Place the English KBP jar file into the
StanfordCoreNLP
directory after downloading and unzipping.
Ensure the following hardware specifications are met:
Execute the following steps to train the model:
text_preprocessing/TextPreprocessingCoreNLP.java
and text_preprocessing/text_preprocessing_sng_parser.py
text_preprocessing/text_preprocessing_sng_parser.py
and text_preprocessing/TextPreprocessingCoreNLP.java
. See below for details to run the java file.On Windows:
>>> pwd
'~/hackathonf23-Creativity_Underflow/'
>>> javac -encoding ISO-8859-1 -cp "<Path_To_Stanford_CoreNLP>\*;<Path_to_JSON_jar>;" text_preprocessing/TextPreprocessingCoreNLP.java
>>> java -cp "<Path_To_Stanford_CoreNLP>\*;<Path_to_JSON_jar>;" text_preprocessing/TextPreprocessingCoreNLP.java
On Linux:
>>> pwd
'~/hackathonf23-Creativity_Underflow/'
>>> javac -cp "<Path_To_Stanford_CoreNLP>/*:<Path_to_JSON_jar>" text_preprocessing/TextPreprocessingCoreNLP.java
>>> java -cp "<Path_To_Stanford_CoreNLP>/*:<Path_to_JSON_jar>" "text_processing/TextPreprocessingCoreNLP.java"
Embeddings Generation:
Generate embeddings for training and validation using python generateEmbeddings.py
Embeddings Storage:
Store the embeddings to a numpy memmapped file using python memmapEmbeddings.py
Model Training:
Begin the training process with python train.py
When referencing our work, please use the following citation:
@article{zhao2023textpsg,
title={TextPSG: Panoptic Scene Graph Generation from Textual Descriptions},
author={Chengyang Zhao and Yikang Shen and Zhenfang Chen and Mingyu Ding and Chuang Gan},
year={2023},
eprint={2310.07056},
archivePrefix={arXiv},
primaryClass={cs.CV}
}```
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?