Labels in Local Development

27 views
Skip to first unread message

Stacy Davis

unread,
Jan 29, 2025, 12:01:15 PM1/29/25
to CoralNet Users
Hello!
Thank you for all of the work you've done and are doing, it's very appreciated!

I've set up a local build of CoralNet and I've been able to upload images, and the models have built out to the corresponding database tables. However, there's no data for labels or functional groups and the local UI is not allowing me to upload a label export from prod. I haven't been able to get too far into debugging it, but it seems like an initial data set is needed.

Is there a location I can find a data set of the labels and functional groups to import into the database?

Thank you!!

Stephen Chan

unread,
Feb 15, 2025, 4:08:32 PM2/15/25
to CoralNet Users
Hi,

Right, when you export a source's labelset to CSV, that CSV data references the ID numbers of the CoralNet labels (which are defined globally, not on the source level). So when you try to import from that labelset CSV-file, it expects those same labels to exist in the CoralNet database with the same IDs.

Note that in general, we don't have the resources to support local builds of CoralNet, so in situations like this you'll need some extra effort to make things work for you. I'd suggest going to the production label list page ( https://coralnet.ucsd.edu/label/list/ ) and scraping the label names and functional groups you're interested in. Then write some lines of Python code that you can run in manage.py shell to create the functional groups, followed by the labels.
Hope that at least helps a bit.
Reply all
Reply to author
Forward
0 new messages