Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F five-video-classification-methods
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 47
    • Issues 47
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Matt Harvey
  • five-video-classification-methods
  • Merge requests
  • !115

modified source path of moving, so that it can find UCF-101 dataset

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Zhang Bin requested to merge github/fork/ideaRunner/edit_move_file into master Oct 26, 2018
  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1

Hi Matt Harvey,

In 1_move_files.py , the filename is only the video file name. it doesn't contain the path of UCF dataset and classname path. That is the reason that when run it, it returns "Can't find xxx to move. Skipping xxx."

I modified

            if not os.path.exists(filename):
                print("Can't find %s to move. Skipping." % (filename))
                continue

            # Move it.
            dest = os.path.join(group, classname, filename)
            print("Moving %s to %s" % (filename, dest))
            os.rename(filename, dest)

to

            src = os.path.join("UCF-101", classname, filename)
            if not os.path.exists(src):
                print("Can't find %s to move. Skipping." % (src))
                continue

            # Move it.
            dest = os.path.join(group, classname, filename)
            print("Moving %s to %s" % (src, dest))
            os.rename(src, dest)

This way others don’t need to modify it again.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ideaRunner/edit_move_file