{ "cells": [ { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "import os\n", "import shutil" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "for i in os.listdir('/home/coder/laopo/data/face_only/face_only_captions_human_b10_e40_lr1e-02'):\n", " if 'body' in i or 'vid' in i or 'face' in i:\n", " os.remove(os.path.join('/home/coder/laopo/data/face_only/face_only_captions_human_b10_e40_lr1e-02', i))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "facialmusic", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.13" } }, "nbformat": 4, "nbformat_minor": 2 }