Browse Source

Add migration file for image captioning

pull/1899/head
Hironsan 2 years ago
parent
commit
5dbde08152
1 changed files with 53 additions and 0 deletions
  1. 53
      backend/projects/migrations/0007_imagecaptioningproject_alter_project_project_type.py

53
backend/projects/migrations/0007_imagecaptioningproject_alter_project_project_type.py

@ -0,0 +1,53 @@
# Generated by Django 4.0.4 on 2022-06-30 23:07
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("projects", "0006_segmentationproject_alter_project_project_type"),
]
operations = [
migrations.CreateModel(
name="ImageCaptioningProject",
fields=[
(
"project_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to="projects.project",
),
),
],
options={
"abstract": False,
"base_manager_name": "objects",
},
bases=("projects.project",),
),
migrations.AlterField(
model_name="project",
name="project_type",
field=models.CharField(
choices=[
("DocumentClassification", "document classification"),
("SequenceLabeling", "sequence labeling"),
("Seq2seq", "sequence to sequence"),
("IntentDetectionAndSlotFilling", "intent detection and slot filling"),
("Speech2text", "speech to text"),
("ImageClassification", "image classification"),
("BoundingBox", "bounding box"),
("Segmentation", "segmentation"),
("ImageCaptioning", "image captioning"),
],
max_length=30,
),
),
]
Loading…
Cancel
Save