-
Notifications
You must be signed in to change notification settings - Fork 0
IFPRI/MTID_MEDIA_ANALYSIS_CROP_DISEASE
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
## Install * add GATE_HOME to bashrc ''' vim ~/.bashrc ''' add following ''' export GATE_HOME=/PATH/TO/GATE ''' * create conda env ''' conda env create -f environment.yml ''' ## Train ''' python ifpriDiseaseTrain.py --trainFolder data/taggedData/ python experimentManager.py --trainInput diseaseType.json --readerType json --nFold 5 --savePath modeldt/ --configFile diseaseTypeTrain.config --gpu --calSampleWeight --x_fields text --y_field label --modelType BERT_Simple --debug ''' ## Apply ''' python ifpriDiseaseApp.py --inputFolder data/taggedData/ --model modeldt/fold_0/ --gpu --config diseaseTypeTrain.config python ifpriDiseaseApp.py --model modeldt/fold_0/ --gpu --config diseaseTypeTrain.config --inputURL https://www.growingproduce.com/fruits/grapes/spotted-lanternfly-found-virginia-grapes/ ''' ## CSV Output * activate ifpriDisease conda envoriment * create a empty folder for new outputs * copy the subfolders in output to the new folder * run exportjson2csv.py [new_output_folder] [csv file name] ''' conda activate ifpriDisease mkdir Jan cp -r output/*_Jan_2024 Jan python exportjson2csv.py Jan/ Jan_2024.csv '''
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published