-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manifest fixes #3146
Manifest fixes #3146
Conversation
@Marishka17 , could you please add a line into CHANGELOG.md? |
from utils.dataset_manifest import ImageManifestManager, VideoManifestManager | ||
|
||
def migrate_data(apps, shema_editor): | ||
def get_logger(): | ||
migration = os.path.basename(__file__).split(".")[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does splitext work here? But I'm fine with the solution as well.
def get_logger(): | ||
migration = os.path.basename(__file__).split(".")[0] | ||
logger = logging.getLogger(name=migration) | ||
logger.setLevel(logging.INFO) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a special file with log configs. Do you think we can put the code into https://github.com/openvinotoolkit/cvat/blob/develop/cvat/apps/engine/log.py?
@Marishka17 , I believe the PR is good. It is a good idea to use logging inside some migrations. Better to move the initialization code into a common place. Please fix and after that I'm OK with the PR. Great job! |
I will merge the PR now to unblock release of CVAT 1.4.0. Please prepare a separate PR with improved logging. |
Motivation and context
Resolves #3119
force
flag for preparing video metaHow has this been tested?
In development environment, docker
Checklist
develop
branch- [ ] I have updated the documentation accordingly- [ ] I have increased versions of npm packages if it is necessary (cvat-canvas,cvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.
- [ ] I have updated the license header for each file (see an example below)